Skip to main content

JsonTreeVtab

Struct JsonTreeVtab 

Source
pub struct JsonTreeVtab;
Expand description

Virtual table module for json_tree.

Trait Implementations§

Source§

impl VirtualTable for JsonTreeVtab

Source§

type Cursor = JsonTreeCursor

The cursor type for scanning this virtual table.
Source§

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<()>

Inform the query planner about available indexes and their costs.
Source§

fn open(&self) -> Result<Self::Cursor>

Open a new scan cursor.
Source§

fn create(cx: &Cx, args: &[&str]) -> Result<Self, FrankenError>
where Self: Sized,

Called for CREATE VIRTUAL TABLE. Read more
Source§

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>

Called for DROP VIRTUAL TABLE — destroy backing storage. Read more
Source§

fn update( &mut self, _cx: &Cx, _args: &[SqliteValue], ) -> Result<Option<i64>, FrankenError>

INSERT/UPDATE/DELETE on the virtual table. Read more
Source§

fn begin(&mut self, _cx: &Cx) -> Result<(), FrankenError>

Begin a virtual table transaction.
Source§

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>

Commit a virtual table transaction.
Source§

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>

Rename the virtual table. Read more
Source§

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>

Release savepoint at level n.
Source§

fn rollback_to(&mut self, _cx: &Cx, _n: i32) -> Result<(), FrankenError>

Roll back to savepoint at level n.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedVtabInstance for T
where T: VirtualTable + 'static, <T as VirtualTable>::Cursor: 'static,

Source§

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)

Return this instance as mutable Any for downcasting to concrete extension types.
Source§

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>

INSERT/UPDATE/DELETE on the virtual table.
Source§

fn begin(&mut self, cx: &Cx) -> Result<(), FrankenError>

Begin a virtual table transaction.
Source§

fn sync_txn(&mut self, cx: &Cx) -> Result<(), FrankenError>

Sync a virtual table transaction.
Source§

fn commit(&mut self, cx: &Cx) -> Result<(), FrankenError>

Commit a virtual table transaction.
Source§

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>

Create a savepoint at level n.
Source§

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>

Roll back to savepoint at level n.
Source§

fn destroy(&mut self, cx: &Cx) -> Result<(), FrankenError>

Destroy the virtual table.
Source§

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>

Inform the query planner about available indexes.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more