Name

load_extension() — Load a dynamically linked SQLite extension

Common Usage

load_extension( extension )
load_extension( extension, entry_point )

Description

The load_extension() function attempts to load and dynamically link the file extension as an SQLite extension. The function named entry_point is called to initialize the extension. If entry_point is not provided, it is assumed to be sqlite3_extension_init. Both parameters should be text values.

This SQL function is a wrapper around the C function sqlite3_load_extension(), and has all of the same limitations and conditions. In specific, extensions loaded this way cannot redefine or delete function definitions.

See Also

sqlite3_load_extension() [C API, Ap G]

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.