pub struct VectorTable<'vtab> { /* private fields */ }Expand description
The virtual table implementation for vector search.
db is a raw pointer to the VTabConnection that SQLite provides to connect/create.
SQLite guarantees the connection outlives the virtual table, so this pointer is valid
for the entire lifetime of VectorTable.
Trait Implementations§
Source§impl<'vtab> CreateVTab<'vtab> for VectorTable<'vtab>
impl<'vtab> CreateVTab<'vtab> for VectorTable<'vtab>
Source§const SHADOW_NAMES: &'static [&'static str]
const SHADOW_NAMES: &'static [&'static str]
List of shadow table names. Read more
Source§fn create(
db: &'vtab VTabConnection,
aux: &'vtab Self::Aux,
args: &[&str],
) -> Result<(String, Self)>
fn create( db: &'vtab VTabConnection, aux: &'vtab Self::Aux, args: &[&str], ) -> Result<(String, Self)>
Corresponds to xCreate. Read more
Source§fn destroy(self) -> DisconnectResult<Self>
fn destroy(self) -> DisconnectResult<Self>
Corresponds to xDestroy, when DROP TABLE is run on the virtual table. The virtual
table implementation should destroy any underlying state that was created by
Self::create.
Source§impl<'vtab> FindFunctionVTab<'vtab> for VectorTable<'vtab>
impl<'vtab> FindFunctionVTab<'vtab> for VectorTable<'vtab>
Source§fn functions(&'vtab self) -> &'vtab VTabFunctionList<'vtab, Self>
fn functions(&'vtab self) -> &'vtab VTabFunctionList<'vtab, Self>
Retrieve a reference to the VTabFunctionList associated with this virtual table.
Source§impl<'vtab> TransactionVTab<'vtab> for VectorTable<'vtab>
impl<'vtab> TransactionVTab<'vtab> for VectorTable<'vtab>
type Transaction = VectorTransaction
Source§fn begin(&'vtab self) -> Result<Self::Transaction>
fn begin(&'vtab self) -> Result<Self::Transaction>
Begin a transaction.
Source§impl<'vtab> UpdateVTab<'vtab> for VectorTable<'vtab>
impl<'vtab> UpdateVTab<'vtab> for VectorTable<'vtab>
Source§impl<'vtab> VTab<'vtab> for VectorTable<'vtab>
impl<'vtab> VTab<'vtab> for VectorTable<'vtab>
Source§type Cursor = VectorCursor
type Cursor = VectorCursor
Cursor implementation for this virtual table.
Source§fn connect(
db: &'vtab VTabConnection,
_aux: &'vtab Self::Aux,
args: &[&str],
) -> Result<(String, Self)>
fn connect( db: &'vtab VTabConnection, _aux: &'vtab Self::Aux, args: &[&str], ) -> Result<(String, Self)>
Corresponds to xConnect. Read more
Source§fn best_index(&'vtab self, info: &mut IndexInfo) -> Result<()>
fn best_index(&'vtab self, info: &mut IndexInfo) -> Result<()>
Corrresponds to xBestIndex. Read more
Source§fn disconnect(self) -> Result<(), (Self, Error)>
fn disconnect(self) -> Result<(), (Self, Error)>
Corresponds to xDisconnect. This method is called when the database connection is
being closed. The implementation should not remove the underlying data, but it
should release any resources associated with the virtual table implementation. This method is the inverse of Self::connect. Read more
impl Send for VectorTable<'_>
impl Sync for VectorTable<'_>
Auto Trait Implementations§
impl<'vtab> !Freeze for VectorTable<'vtab>
impl<'vtab> !RefUnwindSafe for VectorTable<'vtab>
impl<'vtab> Unpin for VectorTable<'vtab>
impl<'vtab> UnsafeUnpin for VectorTable<'vtab>
impl<'vtab> !UnwindSafe for VectorTable<'vtab>
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