Crate sqlite_loadable
source ·Expand description
mod level?
Modules
(Mostly) safe wrappers around low-level sqlite3 C API.
Utilities for working with SQLite’s “sqlite3_extension_init”-style
entrypoints.
Custom Error/Result for sqlite-loadable-rs APIs.
Unsafe wrappers around low-level sqlite3 C API.
Commonly used sqlite-loadable items for easy glob imports.
Define scalar functions on sqlite3 database connections.
Defining virtual tables and table functions on sqlite3 database connections.
Opininated parsing for SQLite virtual table constructor arguments.
Structs
Any error that occurs while creating or using a SQLite extension.
Represents the possible flag values that can be passed into sqlite3_create_function_v2
or sqlite3_create_window_function, as the 4th “eTextRep” parameter.
Includes both the encoding options (utf8, utf16, etc.) and function-level parameters
(deterministion, innocuous, etc.).
Enums
Possible errors to return in xBestIndex.
The specific type of an error.
Functions
Defines a new scalar function on the given database connection.
Defines a new scalar function, but with the added ability to pass in an arbritary
application “pointer” as any rust type. Can be accessed in the callback
function as the 3rd argument, as a reference.
https://www.sqlite.org/c3ref/create_function.html#:~:text=The%20fifth%20parameter%20is%20an%20arbitrary%20pointer.
Define a table function on the given sqlite3 database.
“Table function” is the same as “eponymous-only” virtual table
described at https://www.sqlite.org/vtab.html#eponymous_only_virtual_tables
Define a virtual table on the sqlite3 database connection. Optionally
pass in an auxillary object, which
Type Definitions
A type alias for
Result<T, xxx::Error>
.