GithubHelp home page GithubHelp logo

molikuner / sqldelight-simple-jvm-driver Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 107 KB

a simple wrapper around the driver implementation for the jvm to simplify the usage of migrations etc.

License: Apache License 2.0

Kotlin 100.00%
sqldelight kotlin hacktoberfest

sqldelight-simple-jvm-driver's Introduction

sqldelight-simple-jvm-driver

Download Build Status License

a simple wrapper around the driver implementation for the jvm of SQLDelight to simplify the usage of migrations etc.

setup

dependencies {
    ...
    implementation("com.molikuner.sqldelight:simple-jvm-driver:$sqldelightVersion")
    ...
}

usage

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.

versioning

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.

releasing

  1. create tag on new commit
  2. push to github and wait for drone to finish build
  3. publish by clicking deploy or running drone promote molikuner/sqldelight-simple-jvm-driver <buildNumber> <version>
  4. upload the .asc files from bintray to github release
  5. press publish on github

if drone build/promote fails, these steps are needed to do it manually:

  1. open build.gradle.kts and replace the following: in the bintray section

    1. user with molikuner
    2. key with the api key from my user profile of bintray
    3. the gpg passphrase with the passphrase from my password manager
  2. run ./gradlew bintrayUpload

  3. upload all files from build/repository/com/molikuner/sqldelight/simple-jvm-driver/<version>/ to the github release

sqldelight-simple-jvm-driver's People

Contributors

molikuner avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.