a simple wrapper around the driver implementation for the jvm of SQLDelight to simplify the usage of migrations etc.
dependencies {
...
implementation("com.molikuner.sqldelight:simple-jvm-driver:$sqldelightVersion")
...
}
val driver: SqlDriver = JvmSqliteDriver(Database.Schema, "test.db")
by using this driver wrapper you get automatic migrations. you don't need to save anthing about your db except the db itself and the lib will migrate your schema if a newer version is available. at initial creation of the db the current schema will be applied and afterwards with every new migration it will be migrated. just as simple as the android driver.
as this is just a simple wrapper around the official SQLDelight jvm driver this library uses the same versioning as the underlying driver implementation. this also means, that there will be one release of this lib per release of SQLDelight.
- create tag on new commit
- push to github and wait for drone to finish build
- publish by clicking deploy or running
drone promote molikuner/sqldelight-simple-jvm-driver <buildNumber> <version>
- upload the
.asc
files from bintray to github release - press publish on github
if drone build/promote fails, these steps are needed to do it manually:
-
open build.gradle.kts and replace the following: in the bintray section
- user with
molikuner
- key with the api key from my user profile of bintray
- the gpg passphrase with the passphrase from my password manager
- user with
-
run
./gradlew bintrayUpload
-
upload all files from
build/repository/com/molikuner/sqldelight/simple-jvm-driver/<version>/
to the github release