Trait rusqlite::vtab::CreateVTab [−][src]
pub trait CreateVTab<'vtab>: VTab<'vtab> { fn create(
db: &mut VTabConnection,
aux: Option<&Self::Aux>,
args: &[&[u8]]
) -> Result<(String, Self)> { ... } fn destroy(&self) -> Result<()> { ... } }
feature = "vtab"
Non-eponymous virtual table instance trait.
(See SQLite doc)
Provided methods
fn create(
db: &mut VTabConnection,
aux: Option<&Self::Aux>,
args: &[&[u8]]
) -> Result<(String, Self)>
[src]
db: &mut VTabConnection,
aux: Option<&Self::Aux>,
args: &[&[u8]]
) -> Result<(String, Self)>
Create a new instance of a virtual table in response to a CREATE VIRTUAL
TABLE statement. The db
parameter is a pointer to the SQLite
database connection that is executing the CREATE VIRTUAL TABLE
statement.
Call connect
by default.
(See SQLite doc)
fn destroy(&self) -> Result<()>
[src]
Destroy the underlying table implementation. This method undoes the work
of create
.
Do nothing by default. (See SQLite doc)