IosStorage

class IosStorage(storageFileUrl: ERROR CLASS: Symbol not found for NSURL, excludeFromBackup: Boolean = true, busyTimeout: ERROR CLASS: Symbol not found for Duration = 5.seconds, clock: ERROR CLASS: Symbol not found for Clock = Clock.System) : SqliteStorage

Implementation of Storage for iOS platform.

Parameters

storageFileUrl

a URL with the path to the database file.

excludeFromBackup

if true, the database file will be excluded from backup.

busyTimeout

timeout to wait for SQLite database locks before failing. Defaults to 5 seconds.

clock

clock to use for timestamps and expiration. Defaults to Clock.System.

Constructors

Link copied to clipboard
constructor(storageFileUrl: ERROR CLASS: Symbol not found for NSURL, excludeFromBackup: Boolean = true, busyTimeout: ERROR CLASS: Symbol not found for Duration = 5.seconds, clock: ERROR CLASS: Symbol not found for Clock = Clock.System)
constructor(storageFileUrl: ERROR CLASS: Symbol not found for NSURL, excludeFromBackup: Boolean)

Constructor for backwards compatibility with Swift and Objective-C callers who do not specify busyTimeout or clock.

constructor(storageFileUrl: ERROR CLASS: Symbol not found for NSURL, excludeFromBackup: Boolean, busyTimeoutMs: Long)

Constructor allowing Swift and Objective-C callers to specify a busy timeout in milliseconds.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val busyTimeout: ERROR CLASS: Symbol not found for Duration
Link copied to clipboard
val clock: kotlin/time/Clock

Functions

Link copied to clipboard
open suspend override fun getTable(spec: StorageTableSpec): StorageTable

Get the table with specific name and features.

Link copied to clipboard
open suspend override fun purgeExpired()

Reclaim the storage occupied by expired entries across all tables in this Storage object (even if these tables were never accessed using getTable in this session).