Skip to content

Instantly share code, notes, and snippets.

@tkshnwesper tkshnwesper/sql.kt
Created Jan 22, 2017

Embed
What would you like to do?
Creating an SQL keyword that does not exist in Anko
db?.createTable("tablename", true,
"id" to INTEGER + PRIMARY_KEY,
"name" to TEXT,
"base" to TEXT,
"lastRead" to object : SqlType {
override val modifier: String?
get() = null
override val name: String
get() = "DATETIME"
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.