Name

sqlite3_file_control() — Low-level control of database files

Definition

int sqlite3_file_control( sqlite3* db, const char *name,
                          int option, void* data );
db

A database connection.

name

The destination logical database name in UTF-8. This can be main, temp, or the logical name given to ATTACH DATABASE.

option

A configuration option value.

data

A configuration data value. The exact meaning is typically determined by the value of the option parameter.

Returns

An SQLite result code or other value.

Description

This function allows an application to interact with the low-level file I/O layer within SQLite. The option and data parameters will be passed to the appropriate VFS (Virtual File System) driver’s xFileControl() function.

See Also

sqlite3_vfs_register()