vector_xlite 1.4.0

VectorXLite: A fast and lightweight SQLite extension for vector search with payload support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{error::VecXError, types::QueryPlan};

pub(crate) trait QueryExecutor: Send + Sync {
    fn execute_create_collection_query(&self, query_plans: Vec<QueryPlan>)
    -> Result<(), VecXError>;
    fn execute_insert_query(&self, query_plans: Vec<QueryPlan>) -> Result<(), VecXError>;
    fn execute_delete_query(&self, query_plans: Vec<QueryPlan>) -> Result<(), VecXError>;
    fn execute_delete_collection_query(&self, query_plans: Vec<QueryPlan>) -> Result<(), VecXError>;
    fn execute_search_query(
        &self,
        query_plan: QueryPlan,
    ) -> Result<Vec<std::collections::HashMap<String, String>>, VecXError>;
    fn execute_collection_exists_query(&self, query_plan: QueryPlan) -> Result<bool, VecXError>;
}