Module sqlite_loadable::table
source · Expand description
Defining virtual tables and table functions on sqlite3 database connections.
Structs
Wraps the raw sqlite3_index_constraint and sqlite3_index_constraint_usage
C structs for ergonomic use in Rust.
Wraps the raw sqlite3_index_info C struct, which represents
the possible constraints and outputs the xBestIndex method
should use and return.
https://www.sqlite.org/c3ref/index_info.html
Represents all the arguments given to the virtual table implementation
during xCreate, from the
underlying
argv
/argc
strings. Parsed to be more easily readable.Enums
Possible errors to return in xBestIndex.
Possible operators for a given constraint, found and used in xBestIndex and xFilter.
https://www.sqlite.org/c3ref/c_index_constraint_eq.html
TODO EQ=Equals, GT=GreaterThan, etc.
Traits
Functions
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
Return the
ConstraintOperator
for the given raw operator, usually
from sqlite3_index_info.sqlite3_index_constraint.op .
Values from https://www.sqlite.org/c3ref/c_index_constraint_eq.html