pub struct PostgresConnection { /* private fields */ }Trait Implementations§
Source§impl Connection for PostgresConnection
impl Connection for PostgresConnection
Source§impl Executor for PostgresConnection
impl Executor for PostgresConnection
type Driver = PostgresDriver
fn driver(&self) -> &Self::Driver
async fn prepare(&mut self, sql: 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>> + Send + 's
fn fetch<'s>( &'s mut self, query: Query<Self::Driver>, ) -> impl Stream<Item = Result<RowLabeled>> + Send + 's
Execute the query and returns the rows.
Auto Trait Implementations§
impl Freeze for PostgresConnection
impl !RefUnwindSafe for PostgresConnection
impl Send for PostgresConnection
impl Sync for PostgresConnection
impl Unpin for PostgresConnection
impl !UnwindSafe for PostgresConnection
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