pub struct Postgres { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Database for Postgres
impl Database for Postgres
Source§fn execute(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
fn execute(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
Two rows are enough to tell a SELECT INTO’s one row from its too many.
Source§fn prepare(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
fn prepare(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
PostgreSQL parses the statement string as Db2’s PREPARE does, so its errors come at PREPARE.
fn open(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
Source§fn fetch(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
fn fetch(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
One row, or no row at the end.
fn close(&mut self, call: &Call<'_>) -> Result<Outcome, Abandoned>
fn commit(&mut self, _: &Call<'_>) -> Result<Outcome, Abandoned>
fn rollback(&mut self, _: &Call<'_>) -> Result<Outcome, Abandoned>
Auto Trait Implementations§
impl !RefUnwindSafe for Postgres
impl !Sync for Postgres
impl !UnwindSafe for Postgres
impl Freeze for Postgres
impl Send for Postgres
impl Unpin for Postgres
impl UnsafeUnpin for Postgres
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