pub struct PostgresTransaction<'a> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a> Debug for PostgresTransaction<'a>
impl<'a> Debug for PostgresTransaction<'a>
Source§impl<'t> SqlExecutorMut<Postgres> for PostgresTransaction<'t>
impl<'t> SqlExecutorMut<Postgres> for PostgresTransaction<'t>
async fn execute<'a>( &'a mut self, stmt: &'a str, args: <Postgres as Database>::Arguments<'a>, ) -> Result<u64>
async fn execute_plain<'a>(&'a mut self, stmt: &'a str) -> Result<u64>
async fn fetch_count<'s, 'a>(
&'a mut self,
stmt: &'s str,
args: <Postgres as Database>::Arguments<'a>,
) -> Result<u64>where
'a: 's,
async fn fetch_count_plain<'a>(&'a mut self, stmt: &'a str) -> Result<u64>
async fn fetch_exists<'a>( &'a mut self, stmt: &'a str, args: <Postgres as Database>::Arguments<'a>, ) -> Result<bool>
async fn fetch_exists_plain<'a, A>(&'a mut self, stmt: &'a str) -> Result<bool>
async fn fetch_option<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, args: <Postgres as Database>::Arguments<'a>, ) -> Result<Option<SE>>
async fn fetch_option_<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, args: <Postgres as Database>::Arguments<'a>, ) -> Result<Option<SE>>
async fn fetch_option_plain<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, ) -> Result<Option<SE>>
async fn fetch_option_plain_<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, ) -> Result<Option<SE>>
async fn fetch_all<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, args: <Postgres as Database>::Arguments<'a>, ) -> Result<Vec<SE>>
async fn fetch_all_<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, args: <Postgres as Database>::Arguments<'a>, ) -> Result<Vec<SE>>
async fn fetch_all_plain<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, ) -> Result<Vec<SE>>
async fn fetch_all_plain_<'a, SE>( &'a mut self, stmt: &'a str, selection: &'a SE, ) -> Result<Vec<SE>>
async fn fetch_one_full<'a, SE>( &'a mut self, stmt: &'a str, args: <Postgres as Database>::Arguments<'a>, ) -> Result<SE>
async fn fetch_one_full_plain<'a, SE>(&'a mut self, stmt: &'a str) -> Result<SE>
async fn fetch_option_full<'a, SE>( &'a mut self, stmt: &'a str, args: <Postgres as Database>::Arguments<'a>, ) -> Result<Option<SE>>
async fn fetch_option_full_plain<'a, SE>( &'a mut self, stmt: &'a str, ) -> Result<Option<SE>>
async fn fetch_all_full<'a, SE>( &'a mut self, stmt: &'a str, args: <Postgres as Database>::Arguments<'a>, ) -> Result<Vec<SE>>
async fn fetch_all_full_plain<'a, SE>( &'a mut self, stmt: &'a str, ) -> Result<Vec<SE>>
Source§impl<'t> SqlGenericExecutor for PostgresTransaction<'t>
impl<'t> SqlGenericExecutor for PostgresTransaction<'t>
type DB = Postgres
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<'a> Freeze for PostgresTransaction<'a>
impl<'a> !RefUnwindSafe for PostgresTransaction<'a>
impl<'a> Send for PostgresTransaction<'a>
impl<'a> Sync for PostgresTransaction<'a>
impl<'a> Unpin for PostgresTransaction<'a>
impl<'a> !UnwindSafe for PostgresTransaction<'a>
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> 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