pub struct SqliteSparseStore { /* private fields */ }Implementations§
Source§impl SqliteSparseStore
impl SqliteSparseStore
pub fn new( pool: Arc<ConnectionPool>, is_file_backed: bool, model_key: String, namespace: String, ) -> Result<Self, SqliteError>
Trait Implementations§
Source§impl SparseStore for SqliteSparseStore
impl SparseStore for SqliteSparseStore
fn insert_sparse<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
subject_id: Uuid,
kind: SubstrateKind,
namespace: &'life1 str,
field: &'life2 str,
vector: SparseVector,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn insert_batch<'life0, 'async_trait>(
&'life0 self,
records: Vec<SparseRecord>,
) -> Pin<Box<dyn Future<Output = Result<BatchWriteSummary, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
subject_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search_sparse<'life0, 'async_trait>(
&'life0 self,
request: SparseSearchRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<SparseSearchHit>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for SqliteSparseStore
impl !RefUnwindSafe for SqliteSparseStore
impl Send for SqliteSparseStore
impl Sync for SqliteSparseStore
impl Unpin for SqliteSparseStore
impl UnsafeUnpin for SqliteSparseStore
impl !UnwindSafe for SqliteSparseStore
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