Releases: ctripcorp/SQLlin
Releases · ctripcorp/SQLlin
2.2.0
sqllin-dsl
- New experimental DSL API:
DatabaseScope#CREATE_INDEXfor creating indexes - New experimental DSL API:
DatabaseScope#CREATE_UNIQUE_INDEXfor creating unique indexes - New experimental DSL API:
DatabaseScope#PRAGMA_FOREIGN_KEYSfor enabling foreign keys - New experimental annotation APIs:
ForeignKeyGroup,References,ForeignKeyfor supporting foreign keys for table and column levels - New experimental annotation API:
@Defaultfor specifying default values for columns in CREATE TABLE statements - New SQL aggregate function:
group_concatfor concatenating values with a separator - New SQL scalar functions:
round,random - New SQL string functions:
substr,trim,ltrim,rtrim,replace,instr,printf - New overload for
lengthfunction to supportClauseBlobtype - Breaking change: The parameter type of
absfunction changed fromClauseElementtoClauseNumber - Breaking change: The parameter type of
upperfunction changed fromClauseElementtoClauseString - Breaking change: The parameter type of
lowerfunction changed fromClauseElementtoClauseString - Breaking change: The parameter type of
lengthfunction changed fromClauseElementtoClauseString
sqllin-driver
- Update the
sqlite-jdbc's version to3.51.1.0
sqllin-processor
- Update
KSP's version to2.3.3
2.1.0
sqllin-dsl
- Support typealias of supported types(primitive types, String, ByteArray etc) in generated tables
- Support enumerated types in DSL APIs, includes
=,!=,<,<=,>,>=operators - Support
<,<=,>,>=,IN,BETWEEN...ANDoperators for String - Support
=,!=,<,<=,>,>=,IN,BETWEEN...ANDoperators for ByteArray - Add a new condiction function
ISNOTfor Boolean, andISstarts to support to receive a nullable parameter - Refactored CREATE statements building process, move it from runtime to compile-time.
- New experimental API for COLLATE NOCASE keyword:
CollateNoCase - New experimental API for single column with UNIQUE keyword:
Unique - New Experimental API for composite column groups with UNIQUE keyword:
CompositeUnique
2.0.0
All
- Update
Kotlin's version to2.2.21 - Remove the Desuger configuration
- Update minimal supported Android version from API 23 to 24
sqllin-dsl
- Optimized performance for SQL assembly
- New annotation for marking primary key:
PrimaryKey - New annotation for marking composite primary key:
CompositePrimaryKey - New experimental API for creating Database:
DSLDBConfiguration - New experimental DSL API:
DatabaseScope#CREATE - New experimental DSL API:
DatabaseScope#DROP - New experimental DSL API:
DatabaseSceop#ALERT - Support using ByteArray in DSL, that represents BLOB in SQLite
sqllin-driver
- Update the
sqlite-jdbc's version to3.50.3.0 - Breaking change: The data type of
bindParamsinDatabaseConnection#querychanged fromArray<out String?>?toArray<out Any?>?
sqllin-processor
- Update
KSP's version to2.3.0
1.4.4
1.4.3
1.4.2
1.4.1
All
- Update
Kotlin's version to2.1.10
sqllin-dsl
- Update
kotlinx.coroutines's version to1.10.1 - Update
kotlinx.serialization's version to1.8.0 - Add some DslMaker annotations, make the DSL apis be more readable
sqllin-driver
- Update the
sqlite-jdbc's version to3.48.0.0
sqllin-processor
- Update
KSP's version to2.1.10-1.0.29
1.4.0
1.3.2
All
- Update
Kotlin's version to1.9.24
sqllin-dsl
- Now, you can annotate properties with
kotlinx.serialization.transmintin your data classes to ignore these properties when serialization or deserialization andTableclasses generation.
sqllin-processor
- Update
KSP's version to1.9.24-1.0.20
1.3.1
sqllin-dsl
- Fix a crash when a data class doesn't contain any
Stringelement. - Fix the issue#81 about insert and query null values
- Fix some wrongs about generation of SQL syntax
sqllin-driver
- Breaking change: Remove the deprecated API
CommonCursor#forEachRows - Breaking change: the
getInt,getLong,getFloatandgetDoublewill throw an exception when the value is NULL in SQLite on JVM and native platforms, like on Android in older versions. - Add a new public API:
CommonCursor#isNull, for check if the value is NULL in SQLite