[][src]Module rusqlite::vtab

Create virtual tables.

Follow these steps to create your own virtual table:

  1. Write implemenation of VTab and VTabCursor traits.
  2. Create an instance of the Module structure specialized for VTab impl. from step 1.
  3. Register your Module structure using Connection.create_module.
  4. Run a CREATE VIRTUAL TABLE command that specifies the new module in the USING clause.

(See SQLite doc)

Structs

Context

Context is used by VTabCursor.column to specify the cell value.

IndexConstraint

WHERE clause constraint

IndexConstraintIter
IndexConstraintOp

Index constraint operator.

IndexConstraintUsage

Information about what parameters to pass to VTabCursor.filter.

IndexInfo

Pass information into and receive the reply from the VTab.best_index method.

Module

Virtual table module

OrderBy

A column of the ORDER BY clause.

OrderByIter
VTabConnection
ValueIter
Values

Wrapper to VTabCursor.filter arguments, the values requested by VTab.best_index.

sqlite3_vtab
sqlite3_vtab_cursor

Traits

CreateVTab

Non-eponymous virtual table instance trait.

VTab

Virtual table instance trait.

VTabCursor

Virtual table cursor trait.

Functions

dequote

Dequote string

eponymous_only_module

Create an eponymous only virtual table implementation.

escape_double_quote

Escape double-quote (") character occurences by doubling them ("").

parse_boolean

The boolean can be one of:

read_only_module

Create a read-only virtual table implementation.