Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save handstandsam/c000c77c402ecd37684876142063be36 to your computer and use it in GitHub Desktop.

Select an option

Save handstandsam/c000c77c402ecd37684876142063be36 to your computer and use it in GitHub Desktop.
SqlDelight 1.x Quick Start Guide for Android

These are snippets you can use when getting started with SqlDelight 1.x on Android

These snippets should mostly work, but if you want a fully compiling project then please check out my ShoppingApp project here: https://github.com/handstandsam/ShoppingApp in that project there is a shopping-cart module and shopping-cart-sqldelight module that are used to implement the DB functionality.

buildscript {
...
dependencies {
...
classpath "com.squareup.sqldelight:gradle-plugin:${Versions.sql_delight}"
}
}
apply plugin: "com.squareup.sqldelight"
dependencies {
...
implementation "com.squareup.sqldelight:android-driver:${Versions.sql_delight}"
testImplementation "com.squareup.sqldelight:sqlite-driver:${Versions.sql_delight}"
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment