FileControl
Exposes the file control APIs.
Every member requires an explicit database, null targeting the main database. See the extension properties and functions below for shorthands that target the main database.
Properties
Shorthand for FileControl.getDataVersion on the main database.
Shorthand for hasMoved on the main database.
Shorthand for isPersistWal and FileControl.setPersistWal on the main database.
Shorthand for isPowerSafeOverwrite and FileControl.setPowerSafeOverwrite on the main database.
Shorthand for FileControl.getMmapSize and FileControl.setMmapSize on the main database.
Shorthand for FileControl.getSizeLimit and FileControl.setSizeLimit on the main database.
Shorthand for FileControl.getSystemError on the main database.
Shorthand for FileControl.getTempFileName on the main database.
Shorthand for FileControl.getVfsName on the main database.
Functions
Returns a value for database that changes every time the database's content is modified, whether from this connection or another one, usable to detect changes made outside this connection.
Returns the maximum number of bytes that will be used for memory-mapped I/O on database, or null if the option is not supported by the VFS.
Returns the upper bound on the size of the in-memory database for database, or null if the option is not supported by the VFS.
Returns the platform specific error code for database, or null if the option is not supported by the VFS.
Returns a generated temporary file name for database, or null if the option is not supported by the VFS.
Returns the names of all VFS shims and the final bottom-level VFS for database, or null if the option is not supported by the VFS.
Returns whether the persistent WAL mode is enabled for database, or null if the option is not supported by the VFS.
Returns whether the zero-damage mode is enabled for database, or null if the option is not supported by the VFS.
Shorthand for reserveBytes on the main database.
Purges the content of the in-memory page cache for database.
Shorthand for resetCache on the main database.
Sets the size of a chunk the VFS should split the database file for database into. Does nothing if the VFS does not support the option.
Shorthand for setChunkSize on the main database.
Sets the duration, in milliseconds, this connection waits to obtain a file lock on database before failing. Does nothing if the VFS does not support the option.
Shorthand for setLockTimeout on the main database.
Sets the maximum number of bytes that will be used for memory-mapped I/O on database. Does nothing if the VFS does not support the option.
Indicates that the entire database file for database will be overwritten by the current transaction. Does nothing if the VFS does not support the option.
Shorthand for setOverwrite on the main database.
Enables or disables the persistent WAL mode for database. Does nothing if the VFS does not support the option.
Enables or disables the zero-damage mode for database. Does nothing if the VFS does not support the option.
Gives the VFS layer a hint of how large the database file for database will grow during the current transaction. Does nothing if the VFS does not support the option.
Shorthand for setSizeHint on the main database.
Sets the upper bound on the size of the in-memory database for database. Does nothing if the VFS does not support the option.