Skip to content

Commit ec524bb

Browse files
authored
Merge pull request #112 from qiaoyuang/main
Publish version 2.0.0
2 parents 8e48643 + 49ede83 commit ec524bb

File tree

17 files changed

+1467
-37
lines changed

17 files changed

+1467
-37
lines changed

CHANGELOG.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,33 @@
22

33
- Date format: YYYY-MM-dd
44

5-
## 2.0.0 / 2025-10-xx
5+
## 2.0.0 / 2025-10-23
66

77
### All
88

9-
* Update `Kotlin`'s version to `2.2.20`
9+
* Update `Kotlin`'s version to `2.2.21`
1010
* Remove the Desuger configuration
11+
* Update minimal supported Android version from API 23 to 24
1112

1213
### sqllin-dsl
1314

1415
* Optimized performance for SQL assembly
15-
* New API for creating Database: `DSLDBConfiguration`
16-
* New experimental API: `DatabaseScope#CREATE`
17-
* New experimental API: `DatabaseScope#DROP`
18-
* New experimental API: `DatabaseSceop#ALERT`
16+
* New annotation for marking primary key: `PrimaryKey`
17+
* New annotation for marking composite primary key: `CompositePrimaryKey`
18+
* New experimental API for creating Database: `DSLDBConfiguration`
19+
* New experimental DSL API: `DatabaseScope#CREATE`
20+
* New experimental DSL API: `DatabaseScope#DROP`
21+
* New experimental DSL API: `DatabaseSceop#ALERT`
1922
* Support using ByteArray in DSL, that represents BLOB in SQLite
2023

2124
### sqllin-driver
2225

2326
* Update the `sqlite-jdbc`'s version to `3.50.3.0`
27+
* **Breaking change**: The data type of `bindParams` in `DatabaseConnection#query` changed from `Array<out String?>?` to `Array<out Any?>?`
2428

2529
### sqllin-processor
2630

27-
* Update `KSP`'s version to `2.2.20-2.0.4`
31+
* Update `KSP`'s version to `2.3.0`
2832

2933
## 1.4.4 / 2025-07-07
3034

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[versions]
22

3-
kotlin = "2.2.20"
3+
kotlin = "2.2.21"
44
agp = "8.12.3"
5-
ksp = "2.2.20-2.0.4"
5+
ksp = "2.3.0"
66
serialization = "1.9.0"
77
coroutines = "1.10.2"
88
androidx-annotation = "1.9.1"
@@ -11,7 +11,7 @@ androidx-test-runner = "1.7.0"
1111
sqlite-jdbc = "3.50.3.0"
1212
jvm-toolchain = "21"
1313
android-sdk-compile = "36"
14-
android-sdk-min = "23"
14+
android-sdk-min = "24"
1515
vanniktech-maven-publish = "0.34.0"
1616

1717
[libraries]

sqllin-architecture.png

-1.65 MB
Loading

sqllin-dsl-test/src/androidInstrumentedTest/kotlin/com/ctrip/sqllin/dsl/test/AndroidTest.kt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,36 @@ class AndroidTest {
9797
@Test
9898
fun testByteArrayMultipleOperations() = commonTest.testByteArrayMultipleOperations()
9999

100+
@Test
101+
fun testDropTable() = commonTest.testDropTable()
102+
103+
@Test
104+
fun testDropTableExtensionFunction() = commonTest.testDropTableExtensionFunction()
105+
106+
@Test
107+
fun testAlertAddColumn() = commonTest.testAlertAddColumn()
108+
109+
@Test
110+
fun testAlertRenameTableWithTableObject() = commonTest.testAlertRenameTableWithTableObject()
111+
112+
@Test
113+
fun testAlertRenameTableWithString() = commonTest.testAlertRenameTableWithString()
114+
115+
@Test
116+
fun testRenameColumnWithClauseElement() = commonTest.testRenameColumnWithClauseElement()
117+
118+
@Test
119+
fun testRenameColumnWithString() = commonTest.testRenameColumnWithString()
120+
121+
@Test
122+
fun testDropColumn() = commonTest.testDropColumn()
123+
124+
@Test
125+
fun testDropAndRecreateTable() = commonTest.testDropAndRecreateTable()
126+
127+
@Test
128+
fun testAlertOperationsInTransaction() = commonTest.testAlertOperationsInTransaction()
129+
100130
@Before
101131
fun setUp() {
102132
val context = InstrumentationRegistry.getInstrumentation().targetContext

0 commit comments

Comments
 (0)