pub struct SqliteDatabase { /* private fields */ }Implementations§
Source§impl SqliteDatabase
impl SqliteDatabase
pub async fn transaction<'a>(&'a self) -> Result<SqliteTransaction<'a>>
pub fn get_pool(&self) -> Result<&SqlitePool>
Trait Implementations§
Source§impl Clone for SqliteDatabase
impl Clone for SqliteDatabase
Source§fn clone(&self) -> SqliteDatabase
fn clone(&self) -> SqliteDatabase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqliteDatabase
impl Debug for SqliteDatabase
Source§impl SqlExecutor<Sqlite> for SqliteDatabase
impl SqlExecutor<Sqlite> for SqliteDatabase
async fn execute<'a>( &'a self, stmt: &'a str, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<u64>
async fn execute_plain<'a>(&'a self, stmt: &'a str) -> Result<u64>
async fn fetch_count<'s, 'a>(
&'a self,
stmt: &'s str,
args: <Sqlite as Database>::Arguments<'a>,
) -> Result<u64>where
'a: 's,
async fn fetch_count_plain<'a>(&'a self, stmt: &'a str) -> Result<u64>
async fn fetch_exists<'a>( &'a self, stmt: &'a str, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<bool>
async fn fetch_exists_plain<'a, A>(&'a self, stmt: &'a str) -> Result<bool>
async fn fetch_option<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<Option<SE>>
async fn fetch_option_<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<Option<SE>>
async fn fetch_option_plain<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, ) -> Result<Option<SE>>
async fn fetch_option_plain_<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, ) -> Result<Option<SE>>
async fn fetch_all<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<Vec<SE>>
async fn fetch_all_<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<Vec<SE>>
async fn fetch_all_plain<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, ) -> Result<Vec<SE>>
async fn fetch_all_plain_<'a, SE>( &'a self, stmt: &'a str, selection: &'a SE, ) -> Result<Vec<SE>>
async fn fetch_one_full<'a, SE>( &'a self, stmt: &'a str, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<SE>
async fn fetch_one_full_plain<'a, SE>(&'a self, stmt: &'a str) -> Result<SE>
async fn fetch_option_full<'a, SE>( &'a self, stmt: &'a str, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<Option<SE>>
async fn fetch_option_full_plain<'a, SE>( &'a self, stmt: &'a str, ) -> Result<Option<SE>>
async fn fetch_all_full<'a, SE>( &'a self, stmt: &'a str, args: <Sqlite as Database>::Arguments<'a>, ) -> Result<Vec<SE>>
async fn fetch_all_full_plain<'a, SE>( &'a self, stmt: &'a str, ) -> Result<Vec<SE>>
Source§impl SqlGenericExecutor for SqliteDatabase
impl SqlGenericExecutor for SqliteDatabase
type DB = Sqlite
type CountType = CountResult
fn get_affected_rows(query_result: &<Self::DB as Database>::QueryResult) -> u64
async fn generic_exists<'a, EX, A>( ex: EX, stmt: &'a str, args: A, ) -> Result<bool>
async fn generic_exists_plain<'a, EX, A>( ex: EX, stmt: &'a str, _args: PhantomData<A>, ) -> Result<bool>
async fn generic_count<'s, 'a, EX, A>( ex: EX, stmt: &'s str, args: A, ) -> Result<Self::CountType>
async fn generic_count_plain<'a, EX, A>( ex: EX, stmt: &'a str, _args: PhantomData<A>, ) -> Result<Self::CountType>
async fn generic_execute<'a, 'e, EX, A>( ex: EX, query: &'a str, args: A, ) -> Result<u64>
async fn generic_execute_plain<'a, EX, A>( ex: EX, query: &'a str, _args: PhantomData<A>, ) -> Result<u64>
async fn generic_fetch_all<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, args: A, ) -> Result<Vec<SE>>
async fn generic_fetch_all_<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, args: A, ) -> Result<Vec<SE>>
async fn generic_fetch_all_plain<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, _: PhantomData<A>, ) -> Result<Vec<SE>>
async fn generic_fetch_all_plain_<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, _: PhantomData<A>, ) -> Result<Vec<SE>>
async fn generic_fetch_one<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, args: A, ) -> Result<SE>
async fn generic_fetch_one_<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, args: A, ) -> Result<SE>
async fn generic_fetch_one_plain<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, _: PhantomData<A>, ) -> Result<SE>
async fn generic_fetch_one_plain_<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, _: PhantomData<A>, ) -> Result<SE>
async fn generic_fetch_option<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, args: A, ) -> Result<Option<SE>>
async fn generic_fetch_option_<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, args: A, ) -> Result<Option<SE>>
async fn generic_fetch_option_plain<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, _: PhantomData<A>, ) -> Result<Option<SE>>
async fn generic_fetch_option_plain_<'a, EX, SE, A>( ex: EX, stmt: &'a str, selection: &SE, _: PhantomData<A>, ) -> Result<Option<SE>>
async fn generic_fetch_all_full<'a, EX, SE, A>( ex: EX, stmt: &'a str, args: A, ) -> Result<Vec<SE>>
async fn generic_fetch_all_full_plain<'a, EX, SE, A>( ex: EX, stmt: &'a str, _: PhantomData<A>, ) -> Result<Vec<SE>>
async fn generic_fetch_one_full<'a, EX, SE, A>( ex: EX, stmt: &'a str, args: A, ) -> Result<SE>
async fn generic_fetch_one_full_plain<'a, EX, SE, A>( ex: EX, stmt: &'a str, _: PhantomData<A>, ) -> Result<SE>
async fn generic_fetch_option_full<'a, EX, SE, A>( ex: EX, stmt: &'a str, args: A, ) -> Result<Option<SE>>
async fn generic_fetch_option_full_plain<'a, EX, SE, A>( ex: EX, stmt: &'a str, _: PhantomData<A>, ) -> Result<Option<SE>>
Auto Trait Implementations§
impl Freeze for SqliteDatabase
impl !RefUnwindSafe for SqliteDatabase
impl Send for SqliteDatabase
impl Sync for SqliteDatabase
impl Unpin for SqliteDatabase
impl !UnwindSafe for SqliteDatabase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more