pub struct SqliteMutationExecutor { /* private fields */ }Implementations§
Source§impl SqliteMutationExecutor
impl SqliteMutationExecutor
pub fn new(connection: Arc<Mutex<Connection>>) -> Self
pub fn from_connection(connection: Connection) -> Self
pub fn connection(&self) -> Arc<Mutex<Connection>>
pub fn ensure_schema( &self, dialect: &SqliteDialect, entities: &[&EntityDescriptor], ) -> Result<(), MutationExecutorError>
pub fn ensure_id_space_table( &self, table_name: &str, ) -> Result<(), MutationExecutorError>
pub fn begin_transaction(&self) -> Result<(), MutationExecutorError>
pub fn commit_transaction(&self) -> Result<(), MutationExecutorError>
pub fn rollback_transaction(&self) -> Result<(), MutationExecutorError>
pub fn execute( &self, query: &CompiledQuery, ) -> Result<u64, MutationExecutorError>
pub fn fetch_all( &self, query: &CompiledQuery, ) -> Result<Vec<Record>, MutationExecutorError>
Sourcepub fn fetch_stream(
&self,
query: &CompiledQuery,
chunk_size: usize,
) -> Result<Vec<StreamChunk>, MutationExecutorError>
pub fn fetch_stream( &self, query: &CompiledQuery, chunk_size: usize, ) -> Result<Vec<StreamChunk>, MutationExecutorError>
Fetch rows in streaming mode (chunked).
Returns a Vec of StreamChunk, each containing up to chunk_size rows.
pub fn table_exists( &self, table_name: &str, ) -> Result<bool, MutationExecutorError>
pub fn table_columns( &self, table_name: &str, ) -> Result<BTreeSet<String>, MutationExecutorError>
Trait Implementations§
Source§impl Clone for SqliteMutationExecutor
impl Clone for SqliteMutationExecutor
Source§fn clone(&self) -> SqliteMutationExecutor
fn clone(&self) -> SqliteMutationExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DataServiceExecutor for SqliteMutationExecutor
impl DataServiceExecutor for SqliteMutationExecutor
type Error = MutationExecutorError
fn capabilities(&self) -> DataServiceCapabilities
Source§impl SqlTransport for SqliteMutationExecutor
impl SqlTransport for SqliteMutationExecutor
type Error = MutationExecutorError
async fn fetch_all_sql( &self, query: &CompiledQuery, ) -> Result<Vec<Record>, Self::Error>
async fn execute_sql(&self, query: &CompiledQuery) -> Result<u64, Self::Error>
Source§impl StreamQueryExecutor for SqliteMutationExecutor
impl StreamQueryExecutor for SqliteMutationExecutor
async fn query_stream( &self, request: QueryRequest, chunk_size: usize, ) -> Result<Vec<StreamChunk>, Self::Error>
Auto Trait Implementations§
impl Freeze for SqliteMutationExecutor
impl RefUnwindSafe for SqliteMutationExecutor
impl Send for SqliteMutationExecutor
impl Sync for SqliteMutationExecutor
impl Unpin for SqliteMutationExecutor
impl UnsafeUnpin for SqliteMutationExecutor
impl UnwindSafe for SqliteMutationExecutor
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