SqlNormalizedCacheFactory
expect fun SqlNormalizedCacheFactory(driver: SqlDriver, withDates: Boolean = false)
Content copied to clipboard
expect fun SqlNormalizedCacheFactory(name: String? = "apollo.db", withDates: Boolean = false)
Content copied to clipboard
Parameters
name
: the name of the database or null for an in-memory database When not in memory, the database will be stored in a platform specific folder
on Android it will use Context.getDatabaseName
on MacOS, it will use "Application Support/databases/name"
on the JVM, it will use "System.getProperty("user.home")/.apollo" Default: "apollo.db"
withDates
: whether to store dates (receive dates or expiration dates) Once a database is created, this parameter cannot change Default: false
fun SqlNormalizedCacheFactory( url: String, properties: Properties = Properties(), withDates: Boolean = false)
Content copied to clipboard
Parameters
url
Database connection URL in the form of jdbc:sqlite:path
where path
is either blank (creating an in-memory database) or a path to a file.
properties
fun SqlNormalizedCacheFactory( name: String?, withDates: Boolean, baseDir: String?)
Content copied to clipboard
Parameters
name
the name of the database or null for an in-memory database
withDates
whether to account for dates in the database.
actual fun SqlNormalizedCacheFactory(driver: SqlDriver, withDates: Boolean)
Content copied to clipboard