pub struct PostgresTransaction<'c>(/* private fields */);Implementations§
Source§impl<'c> PostgresTransaction<'c>
impl<'c> PostgresTransaction<'c>
pub async fn new(client: &'c mut PostgresConnection) -> Result<Self>
Trait Implementations§
Source§impl<'c> Executor for PostgresTransaction<'c>
impl<'c> Executor for PostgresTransaction<'c>
type Driver = PostgresDriver
fn driver(&self) -> &Self::Driver
async fn prepare(&mut self, query: String) -> Result<Query<Self::Driver>>
Source§fn run(
&mut self,
query: Query<Self::Driver>,
) -> impl Stream<Item = Result<QueryResult>> + Send
fn run( &mut self, query: Query<Self::Driver>, ) -> impl Stream<Item = Result<QueryResult>> + Send
General method to send any query and return any result type (either row or count)
Source§fn fetch<'s>(
&'s mut self,
query: Query<Self::Driver>,
) -> impl Stream<Item = Result<RowLabeled, Error>> + Send + 's
fn fetch<'s>( &'s mut self, query: Query<Self::Driver>, ) -> impl Stream<Item = Result<RowLabeled, Error>> + Send + 's
Execute the query and returns the rows.
Auto Trait Implementations§
impl<'c> Freeze for PostgresTransaction<'c>
impl<'c> !RefUnwindSafe for PostgresTransaction<'c>
impl<'c> Send for PostgresTransaction<'c>
impl<'c> Sync for PostgresTransaction<'c>
impl<'c> Unpin for PostgresTransaction<'c>
impl<'c> !UnwindSafe for PostgresTransaction<'c>
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