pub struct JsonTreeVtab;Expand description
Virtual table module for json_tree.
Trait Implementations§
Source§impl VirtualTable for JsonTreeVtab
impl VirtualTable for JsonTreeVtab
Source§type Cursor = JsonTreeCursor
type Cursor = JsonTreeCursor
The cursor type for scanning this virtual table.
Source§fn connect(_cx: &Cx, _args: &[&str]) -> Result<Self>
fn connect(_cx: &Cx, _args: &[&str]) -> Result<Self>
Called for subsequent opens of an existing virtual table.
Source§fn best_index(&self, info: &mut IndexInfo) -> Result<()>
fn best_index(&self, info: &mut IndexInfo) -> Result<()>
Inform the query planner about available indexes and their costs.
Source§fn create(cx: &Cx, args: &[&str]) -> Result<Self, FrankenError>where
Self: Sized,
fn create(cx: &Cx, args: &[&str]) -> Result<Self, FrankenError>where
Self: Sized,
Called for
CREATE VIRTUAL TABLE. Read moreSource§fn disconnect(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn disconnect(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Drop a virtual table instance (opposite of
connect).Source§fn destroy(&mut self, cx: &Cx) -> Result<(), FrankenError>
fn destroy(&mut self, cx: &Cx) -> Result<(), FrankenError>
Called for
DROP VIRTUAL TABLE — destroy backing storage. Read moreSource§fn update(
&mut self,
_cx: &Cx,
_args: &[SqliteValue],
) -> Result<Option<i64>, FrankenError>
fn update( &mut self, _cx: &Cx, _args: &[SqliteValue], ) -> Result<Option<i64>, FrankenError>
INSERT/UPDATE/DELETE on the virtual table. Read more
Source§fn sync_txn(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn sync_txn(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Sync a virtual table transaction (phase 1 of 2PC).
Source§fn commit(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn commit(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Commit a virtual table transaction.
Source§fn rollback(&mut self, _cx: &Cx) -> Result<(), FrankenError>
fn rollback(&mut self, _cx: &Cx) -> Result<(), FrankenError>
Roll back a virtual table transaction.
Source§fn rename(&mut self, _cx: &Cx, _new_name: &str) -> Result<(), FrankenError>
fn rename(&mut self, _cx: &Cx, _new_name: &str) -> Result<(), FrankenError>
Rename the virtual table. Read more
Source§fn savepoint(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
fn savepoint(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
Create a savepoint at level
n.Source§fn release(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
fn release(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
Release savepoint at level
n.Source§fn rollback_to(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
fn rollback_to(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>
Roll back to savepoint at level
n.Auto Trait Implementations§
impl Freeze for JsonTreeVtab
impl RefUnwindSafe for JsonTreeVtab
impl Send for JsonTreeVtab
impl Sync for JsonTreeVtab
impl Unpin for JsonTreeVtab
impl UnsafeUnpin for JsonTreeVtab
impl UnwindSafe for JsonTreeVtab
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ErasedVtabInstance for T
impl<T> ErasedVtabInstance for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Return this instance as
Any for downcasting to concrete extension types.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Return this instance as mutable
Any for downcasting to concrete extension types.Source§fn open_cursor(&self) -> Result<Box<dyn ErasedVtabCursor>, FrankenError>
fn open_cursor(&self) -> Result<Box<dyn ErasedVtabCursor>, FrankenError>
Open a new scan cursor.
Source§fn update(
&mut self,
cx: &Cx,
args: &[SqliteValue],
) -> Result<Option<i64>, FrankenError>
fn update( &mut self, cx: &Cx, args: &[SqliteValue], ) -> Result<Option<i64>, FrankenError>
INSERT/UPDATE/DELETE on the virtual table.
Source§fn rollback(&mut self, cx: &Cx) -> Result<(), FrankenError>
fn rollback(&mut self, cx: &Cx) -> Result<(), FrankenError>
Roll back a virtual table transaction.
Source§fn savepoint(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
fn savepoint(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
Create a savepoint at level
n.Source§fn release(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
fn release(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
Release savepoint at level
n.Source§fn rollback_to(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
fn rollback_to(&mut self, cx: &Cx, n: i32) -> Result<(), FrankenError>
Roll back to savepoint at level
n.Source§fn rename(&mut self, cx: &Cx, new_name: &str) -> Result<(), FrankenError>
fn rename(&mut self, cx: &Cx, new_name: &str) -> Result<(), FrankenError>
Rename the virtual table.
Source§fn best_index(&self, info: &mut IndexInfo) -> Result<(), FrankenError>
fn best_index(&self, info: &mut IndexInfo) -> Result<(), FrankenError>
Inform the query planner about available indexes.