File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/jsMain/kotlin/cz/sazel/sqldelight/node/sqlite3 Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,12 @@ import kotlin.coroutines.resumeWithException
1111import kotlin.coroutines.suspendCoroutine
1212
1313suspend fun initSqlite3SqlDriver (
14- filename : String , mode : Number = OPEN_CREATE .toInt() or OPEN_READWRITE .toInt() ,
14+ filename : String , mode : Number ? = null ,
1515 schema : SqlSchema ? = null,
16- ): SQLite3Driver = SQLite3Driver (initSqlite3Database(filename, mode)).withSchema(schema)
16+ ): SQLite3Driver =
17+ SQLite3Driver (initSqlite3Database(filename, mode ? : (OPEN_CREATE .toInt() or OPEN_READWRITE .toInt()))).withSchema(
18+ schema
19+ )
1720
1821private fun initSqlite3Database (
1922 filename : String , mode : Number = OPEN_CREATE .toInt() or OPEN_READWRITE .toInt()
You can’t perform that action at this time.
0 commit comments