Available on crate feature
vtab only.Expand description
Create virtual tables.
Follow these steps to create your own virtual table:
- Write implementation of
VTabandVTabCursortraits. - Create an instance of the
Modulestructure specialized forVTabimpl. from step 1. - Register your
Modulestructure usingConnection::create_module. - Run a
CREATE VIRTUAL TABLEcommand that specifies the new module in theUSINGclause.
(See SQLite doc)
Modules
- array
arrayArray Virtual Table. - csvtab
csvtabCSV Virtual Table. - series
seriesGenerate series virtual table.
Structs
- Context is used by
VTabCursor::columnto specify the cell value. - WHERE clause constraint.
- Iterate on index constraint and its associated usage.
feature = "vtab"- Information about what parameters to pass to
VTabCursor::filter. - Virtual table scan flags See Function Flags for details.
- Pass information into and receive the reply from the
VTab::best_indexmethod. - Virtual table module
- A column of the ORDER BY clause.
feature = "vtab"feature = "vtab"Valuesiterator.- Wrapper to
VTabCursor::filterarguments, the values requested byVTab::best_index.
Enums
- Index constraint operator. See Virtual Table Constraint Operator Codes for details.
- Virtual table configuration options
- Virtual table kind
Traits
- Read-only virtual table instance trait.
- Writable virtual table instance trait.
- Eponymous-only virtual table instance trait.
- Virtual table cursor trait.
Functions
- Dequote string
- Create an eponymous only virtual table implementation.
- Escape double-quote (
") character occurrences by doubling them (""). <param_name>=['"]?<param_value>['"]?=>(<param_name>, <param_value>)- The boolean can be one of:
- Create a read-only virtual table implementation.
- Create an modifiable virtual table implementation.