-
Notifications
You must be signed in to change notification settings - Fork 16
SQLite samples
Just to better understand how Kripton ORM works, a sample project was created here.
You can simply navigate in the androidTests
to run test or sample and see Kripton at work. Every kind of sample has its directory under src/androidTest/java
and src/main/java
. Almost all sample generate log for monitoring SQL operations simply with logcat.
Show how to simply create two model object and its two dao interfaces. Code is [here]. You can also see how to declare a primary key, with or without annotation. Al last, you will found how to make JOIN between two table, and select only value contained in model object associated to the dao interface. See
In this sample it is tested how Kripton allows to define SQL simply defining needed parts of SQL and not all the entire SQL statemtents. This kind of SQL is called compact mode. SQL is defined using classes and attributes name instead of table and column names.
- Introduction
- Goals & Features
- Kotlin
- Immutable or Mutable Pojo
- Annotation Processor Args
- Credits
- Articles
- Benchmarks
- Setup
- Tutorial
- Usage
- Dependencies and inspirations
- Stackoverflow
- Documentation
- SQL logging
- Data source options
- Indices
- SQL Type adapter
- Global SQL Type adapter
- Constraints
- Live data: welcome Architectural components!!
- Paged Live data
- Dynamic parts
- Transactional and batch operations
- Async Transactional and batch operations
- Global transaction
- Support for immutable POJO
- Generate Content provider
- Generate Database schema generation
- Database migration
- BindSqlColumn
- BindContentProvider
- BindContentProviderEntry
- BindContentProviderPath
- BindDao
- BindDaoMany2Many
- BindDataSource
- BindDataSourceOptions
- BindDataSourceUpdateTask
- BindIndex
- BindSqlRelation
- BindSqlAdapter
- BindSqlChildSelect
- BindSqlDelete
- BindSqlDynamicOrderBy
- BindSqlDynamicWhere
- BindSqlDynamicWhereParams
- BindSqlInsert
- BindSqlPageSize
- BindSqlParam
- BindSqlSelect
- BindSqlUpdate
- BindSqlType
- BindSqlTransaction