John O'Reilly
11/25/2020, 5:27 PMJohn O'Reilly
11/25/2020, 5:27 PMdb = DB
.inDir(getApplicationFilesDirectoryPath())
.open("bikeshare_db", KotlinxSerializer {
NetworkList.serializer()
})
John O'Reilly
11/25/2020, 5:27 PMType mismatch.
Required:
Options.Open
Found:
KotlinxSerializer
romainbsl
11/26/2020, 10:41 AMinMemory
database use (for test only!!), thus the API has evolved a bit, but maybe the documentation is outdatedromainbsl
11/26/2020, 10:41 AMprivate val dbFactory by lazy { DB.default.inDir(getApplicationFilesDirectoryPath(ctx)) }
private val appDB by lazy { dbFactory.open("application", KotlinxSerializer()) }
John O'Reilly
11/26/2020, 10:42 AMromainbsl
11/26/2020, 10:43 AMJohn O'Reilly
11/26/2020, 10:43 AMromainbsl
11/26/2020, 11:59 AMJohn O'Reilly
11/26/2020, 2:29 PMType mismatch.
Required:
Options.Open
Found:
KotlinxSerializer