pub struct SqliteSqlExecutor;Trait Implementations§
Source§impl Clone for SqliteSqlExecutor
impl Clone for SqliteSqlExecutor
Source§fn clone(&self) -> SqliteSqlExecutor
fn clone(&self) -> SqliteSqlExecutor
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 Executor for SqliteSqlExecutor
impl Executor for SqliteSqlExecutor
type Row<'a> = SqliteRow<'a>
type Conn = Object<Manager>
async fn query<T, R, F, Q>( &self, conn: Arc<Mutex<Self::Conn>>, sql: &str, params: &Vec<ParamValue>, mapper: F, processor: Q, ) -> Result<R, DatabaseError>
async fn execute( &self, conn: Arc<Mutex<Self::Conn>>, sql: &str, params: &Vec<ParamValue>, ) -> Result<u64, DatabaseError>
fn get_conn_ref(&self) -> Result<Arc<Mutex<Self::Conn>>, DatabaseError>
async fn get_conn(&self) -> Result<Self::Conn, DatabaseError>
async fn start_transaction(&self) -> Result<(), DatabaseError>
async fn commit(&self) -> Result<(), DatabaseError>
async fn rollback(&self) -> Result<(), DatabaseError>
async fn transaction_basic_exec<F, T, Fut>( &self, func: F, ) -> Result<T, DatabaseError>
async fn exec_basic( &self, sql: &str, params: &Vec<ParamValue>, ) -> Result<u64, DatabaseError>
async fn query_basic<T, R, F, Q>( &self, sql: &str, params: &Vec<ParamValue>, mapper: F, processor: Q, ) -> Result<R, DatabaseError>
fn row_to_e<E>(row: &Self::Row<'_>) -> Result<E, DatabaseError>where
E: Mapping,
async fn query_some<E>(
&self,
sql: &str,
params: &Vec<ParamValue>,
) -> Result<Vec<E>, DatabaseError>where
E: Mapping,
async fn query_one<E>(
&self,
sql: &str,
params: &Vec<ParamValue>,
) -> Result<Option<E>, DatabaseError>where
E: Mapping,
async fn query_one_value<T>( &self, sql: &str, params: &Vec<ParamValue>, ) -> Result<Option<T>, DatabaseError>
async fn query_count( &self, sql: &str, params: &Vec<ParamValue>, ) -> Result<u64, DatabaseError>
async fn insert<E>(
&self,
sql: &str,
params: &Vec<ParamValue>,
) -> Result<Option<<E as Entity>::K>, DatabaseError>where
E: Entity,
async fn insert_batch<E>(
&self,
sql: &str,
params: &Vec<ParamValue>,
) -> Result<u64, DatabaseError>where
E: Entity,
async fn delete( &self, sql: &str, params: &Vec<ParamValue>, ) -> Result<u64, DatabaseError>
async fn update( &self, sql: &str, params: &Vec<ParamValue>, ) -> Result<u64, DatabaseError>
async fn execute_sql( &self, sql: &str, params: &Vec<ParamValue>, ) -> Result<u64, DatabaseError>
Auto Trait Implementations§
impl Freeze for SqliteSqlExecutor
impl RefUnwindSafe for SqliteSqlExecutor
impl Send for SqliteSqlExecutor
impl Sync for SqliteSqlExecutor
impl Unpin for SqliteSqlExecutor
impl UnsafeUnpin for SqliteSqlExecutor
impl UnwindSafe for SqliteSqlExecutor
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