Expand description
Defining virtual tables and table functions on sqlite3 database connections.
Structs§
- Constraint
- Wraps the raw sqlite3_index_constraint and sqlite3_index_constraint_usage C structs for ergonomic use in Rust.
- Index
Info - 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
- OrderBy
- VTab
Arguments - 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§
- Best
Index Error - Possible errors to return in xBestIndex.
- Constraint
Operator - 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.
- Order
ByDirection - Update
Operation
Traits§
Functions§
- define_
table_ function - 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_
virtual_ table - Define a virtual table on the sqlite3 database connection. Optionally pass in an auxillary object, which
- define_
virtual_ table_ writeable - define_
virtual_ table_ writeable_ with_ transactions - define_
virtual_ table_ writeablex - operator
- 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