pub struct PgClient { /* private fields */ }Expand description
A wrapper around tokio_postgres::Client implementing the NextSQL Client trait.
Implementations§
Trait Implementations§
Source§impl Client for PgClient
impl Client for PgClient
type Transaction<'a> = PgTransaction<'a>
Source§fn transaction(
&mut self,
) -> impl Future<Output = Result<<PgClient as Client>::Transaction<'_>, <PgClient as QueryExecutor>::Error>> + Send
fn transaction( &mut self, ) -> impl Future<Output = Result<<PgClient as Client>::Transaction<'_>, <PgClient as QueryExecutor>::Error>> + Send
Begin a new transaction.
Auto Trait Implementations§
impl Freeze for PgClient
impl !RefUnwindSafe for PgClient
impl Send for PgClient
impl Sync for PgClient
impl Unpin for PgClient
impl UnsafeUnpin for PgClient
impl !UnwindSafe for PgClient
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