Skip to content

Instantly share code, notes, and snippets.

@kitek
Created June 21, 2016 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitek/9aa2c14ac8bd5aac3c57272868c0d4b5 to your computer and use it in GitHub Desktop.
Save kitek/9aa2c14ac8bd5aac3c57272868c0d4b5 to your computer and use it in GitHub Desktop.
Kotlin DbHelper
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class DbHelper(context: Context) : SQLiteOpenHelper(context, "some.db", null, 1) {
override fun onUpgrade(db: SQLiteDatabase?, oldVersion: Int, newVersion: Int) {
}
override fun onCreate(db: SQLiteDatabase?) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment