pub trait CreateVTab<'vtab>: VTab<'vtab> {
const KIND: VTabKind;
// Provided methods
fn create(
db: &mut VTabConnection,
aux: Option<&Self::Aux>,
args: &[&[u8]],
) -> Result<(String, Self)> { ... }
fn destroy(&self) -> Result<()> { ... }
}
Expand description
Read-only virtual table instance trait.
(See SQLite doc)
Required Associated Constants§
Provided Methods§
Sourcefn create(
db: &mut VTabConnection,
aux: Option<&Self::Aux>,
args: &[&[u8]],
) -> Result<(String, Self)>
fn create( 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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.