FileControl

interface FileControl(source)

Exposes the file control APIs.

Functions

Link copied to clipboard
abstract fun getDataVersion(database: String? = null): Int

Returns the data version used to detect changes to a database file.

Link copied to clipboard
abstract fun getMmapSize(database: String? = null): Long?

Returns the maximum number of bytes that will be used for memory-mapped I/O. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun getSizeLimit(database: String? = null): Long?

Returns the upper bound on the size of the in-memory database, on database. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun getSystemError(database: String? = null): Int?

Returns the platform specific error code, on database. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun getTempFileName(database: String? = null): String?

Returns a generated temporary file name. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun getVfsName(database: String? = null): String?

Returns the names of all VFS shims and the final bottom-level VFS. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun hasMoved(database: String? = null): Boolean?

Returns whether the file has been renamed, moved, or deleted since it was first opened. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun isPersistWal(database: String? = null): Boolean?

Returns whether the persistent WAL mode is enabled. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun isPowerSafeOverwrite(database: String? = null): Boolean?

Returns whether the zero-damage mode is enabled. If the option is not supported by the VFS, then null is returned.

Link copied to clipboard
abstract fun reserveBytes(bytes: Int, database: String?)
Link copied to clipboard
abstract fun resetCache(database: String? = null)

Purges the content of the in-memory page cache.

Link copied to clipboard
abstract fun setChunkSize(size: Int, database: String? = null)

Sets the size of a chunk the VFS should split the database file in. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setLockTimeout(millis: Int, database: String? = null)

Sets the duration, in milliseconds, before failing when attempting to obtain a file lock using the xLock or xShmLock methods of the VFS. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setMmapSize(size: Long, database: String? = null)

Sets the maximum number of bytes that will be used for memory-mapped I/O. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setOverwrite(value: Long, database: String?)

Indicates that the entire database file will be overwritten by the current transaction. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setPersistWal(enabled: Boolean, database: String? = null)

Enables or disables the persistent WAL mode. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setPowerSafeOverwrite(enabled: Boolean, database: String? = null)

Enables or disables the zero-damage mode. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setSizeHint(size: Long, database: String? = null)

Gives the VFS layer a hint of how large the database file will grow to be during the current transaction, on database. Does nothing is the VFS does not support the option.

Link copied to clipboard
abstract fun setSizeLimit(limit: Long, database: String? = null)

Sets the upper bound on the size of the in-memory database, on database. Does nothing is the VFS does not support the option.