Name

sqlite3_vfs_register() — Register a custom VFS module

Definition

int sqlite3_vfs_register( sqlite3_vfs* vfs, int make_default );
vfs

A VFS module.

make_default

If this value is nonzero, the given VFS module will become the default module.

Returns

An SQLite result code.

Description

This function registers an application-defined VFS module with the SQLite. The new module can also be made the default for new database connections. The same module (under the same name) can be safely registered multiple times. To make an existing module the default module, just reregister it with the default flag set.

VFS modules are an advanced SQLite topic. For more information, see http://www.sqlite.org/c3ref/vfs.html.

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.