All Projects → 13767004362 → SQLitePractice

13767004362 / SQLitePractice

Licence: other
数据库案例:1.使用时间和日期函数,增,查时间字段。2.利用ContentProvider,CursorLoader,SQLite实现数据库的观察者模式。3.RxJava,SQLBrite实现数据库的观察者模式。4.拷贝外部db文件到数据库中

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SQLitePractice

AndroidTutorials
Ejemplos Android [Dagger2,RxJava,MVP,Retrofit2,SQLite]
Stars: ✭ 22 (+4.76%)
Mutual labels:  sqlite, rxjava, rxandroid
Freezer
A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Stars: ✭ 326 (+1452.38%)
Mutual labels:  sqlite, rxjava, rxandroid
Mvpdemo
Stars: ✭ 193 (+819.05%)
Mutual labels:  rxjava, rxandroid
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (+11728.57%)
Mutual labels:  rxjava, rxandroid
Requery
requery - modern SQL based query & persistence for Java / Kotlin / Android
Stars: ✭ 3,071 (+14523.81%)
Mutual labels:  sqlite, rxjava
Materialistic
A material-design Hacker News Android reader
Stars: ✭ 2,163 (+10200%)
Mutual labels:  rxjava, rxandroid
Androidbasemvp
🚀一个快速搭建MVP+RxJava2+Retrofit 基础框架,主要是封装有Http网络请求、日志、缓存、加载等待、toast、页面状态布局管理、权限、RxBus、Glide图片加载等组件,方便快速开发新项目、减少开发成本。
Stars: ✭ 184 (+776.19%)
Mutual labels:  rxjava, rxandroid
Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (+985.71%)
Mutual labels:  rxjava, rxandroid
Reactivebeacons
Android library scanning BLE beacons nearby with RxJava
Stars: ✭ 171 (+714.29%)
Mutual labels:  rxjava, rxandroid
Reactiveandroid
🚀 Simple and powerful ORM for Android
Stars: ✭ 102 (+385.71%)
Mutual labels:  sqlite, rxjava
Android tmdb clean architecture
Showcase of clean architecture concepts along with Continuous Integration and Development for modular Android applications. Includes test suits (functional and unit tests) along with code coverage.
Stars: ✭ 63 (+200%)
Mutual labels:  sqlite, rxjava
Storio
Reactive API for SQLiteDatabase and ContentResolver.
Stars: ✭ 2,594 (+12252.38%)
Mutual labels:  sqlite, rxjava
PokemonCards
Android Clean MVP Architecture with Dagger & Simple Package Structure
Stars: ✭ 28 (+33.33%)
Mutual labels:  rxjava, rxandroid
Rxbus
Event Bus By RxJava.
Stars: ✭ 2,126 (+10023.81%)
Mutual labels:  rxjava, rxandroid
Reactivewifi
Android library listening available WiFi Access Points and related information with RxJava Observables
Stars: ✭ 186 (+785.71%)
Mutual labels:  rxjava, rxandroid
Mvvm Architecture Android Beginners
This repository contains a sample app that implements MVVM architecture using Kotlin, ViewModel, LiveData, and etc.
Stars: ✭ 176 (+738.1%)
Mutual labels:  rxjava, rxandroid
Marvel
Marvel Characters Android Application Assigned by smava GmbH
Stars: ✭ 227 (+980.95%)
Mutual labels:  rxjava, rxandroid
Android Clean Architecture Boilerplate
Apply clean architecture on Android
Stars: ✭ 141 (+571.43%)
Mutual labels:  rxjava, rxandroid
Reactivesensors
Android library monitoring device hardware sensors with RxJava
Stars: ✭ 161 (+666.67%)
Mutual labels:  rxjava, rxandroid
neurosky-android-sdk
Android SDK for the NeuroSky MindWave Mobile Brainwave Sensing Headset
Stars: ✭ 39 (+85.71%)
Mutual labels:  rxjava, rxandroid

SQLitePractice

Android开发中数据库常见案例:

  1. 使用时间和日期函数,增,查时间字段。

  2. 利用ContentProvider,CursorLoader,SQLite实现数据库的观察者模式。

  3. RxJava,SQLBrite实现数观察者模式。

  4. 拷贝外部db文件到数据库,这里实现城市选择的功能。

以上,每个案例的博客介绍,请阅读SQLite常见案例教程

SQLite

1. 简介:

SQLite 是一个软件库,实现了自给自足的、无服务器的、零配置的、事务性的 SQL 数据库引擎。

2. 字段类型:

  1. NULL: null值

  2. INTEGER: 一个带有符号整数,根据值的大小存储在1-4字节中

  3. REAL:一个浮点数,储存为8字节的IEEE浮点数

  4. TEXT:一个文字字符串,根据数据库编码存储(UTF-8/UTF-16BE/UTF-16LE)

  5. BLOB:一个 blob 数据,完全根据它的输入存储。

更多其他数据库(例如MYSQL)中字段类型对应SQLite的类型,请参考SQlite类型官方介绍,看不懂英文的小伙伴,请看中文翻译的SQLite中数据类型

3. SQLite的增删查改操作及事务:

SQLite的增删查改操作比较常见,事务使用也比较常见,这里不多做介绍。更多具体详情,SQLite教程的增删查改.

4. SQLite特殊数据存储(重点):

  1. 存储日期和时间数据类型:

    SQLite没有专门提供存储日期和时间存储类型,通常可以TEXT , REAL和INTEGER类型来替代的方式存储。

    • TEXT对应的数据:"YYYY-MM-DD HH:MM:SS.SSS"格式的数据

    • REAL对应的数据: Julian日期格式存储,即从公元前 4714 年 11 月 24 日格林尼治时间的正午开始算起的天数。

    • INTEGER对应的数据:Unix时间形式的数据 , 即从 1970-01-01 00:00:00 UTC 算起的秒数。

    可以以任何上述格式来存储日期和时间,并且可以使用内置的日期和时间函数来自由转换不同格式。

  2. 布尔数据类型:

    采用true用1替代和false用0替代的方式存储。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].