Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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