jw
03/05/2019, 5:42 PMpaulblessing
03/05/2019, 5:57 PMalec
03/05/2019, 6:22 PMalec
03/05/2019, 6:23 PMpaulblessing
03/05/2019, 6:25 PMCAST
. I could do something like CAST(NULL AS BLOB)
even without a custom function.alec
03/05/2019, 6:27 PMalec
03/05/2019, 6:27 PMCAST(NULL AS BLOB) => ByteArray?
CAST(10 AS BLOB) => BytteArray
paulblessing
03/05/2019, 6:29 PMkkovach
03/05/2019, 10:50 PMalec
03/05/2019, 11:17 PMalec
03/05/2019, 11:17 PMkkovach
03/06/2019, 4:03 AMalec
03/06/2019, 5:02 AMkkovach
03/06/2019, 1:49 PMalec
03/06/2019, 2:00 PMkkovach
03/06/2019, 2:54 PMalec
03/06/2019, 3:19 PMsourceFolders =
part of your gradle block and move the .sq files under src/commonMain/sqldelightalec
03/06/2019, 3:19 PMkkovach
03/06/2019, 3:37 PMkkovach
03/06/2019, 3:39 PMkkovach
03/06/2019, 3:42 PMcoletz
03/07/2019, 9:23 AMalec
03/07/2019, 12:19 PMcoletz
03/07/2019, 12:33 PMimplementation 'org.xerial:sqlite-jdbc:3.25.2'
implementation "com.squareup.sqldelight:sqlite-driver:1.1.0"
alec
03/07/2019, 2:23 PMalec
03/07/2019, 2:23 PMcoletz
03/07/2019, 4:17 PMMyDatabase.Schema.create(driver)
?
EDIT: seems like this is not enough... table are erased anywaycoletz
03/07/2019, 5:04 PMval driver: SqlDriver = JdbcSqliteDriver()
Database.Schema.create(driver)
but if you don't put a name inside the driver the db is "in memory" (or at least that's my conclusion). So using JdbcSqliteDriver("jdbc:sqlite:mydatabase.db")
will work and persist the db after app restartalec
03/07/2019, 5:05 PMcoletz
03/07/2019, 5:07 PM