pub struct Postgres { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Database for Postgres
impl Database for Postgres
Source§fn execute(&mut self, call: &Call<'_>) -> Answer
fn execute(&mut self, call: &Call<'_>) -> Answer
Two rows are enough to tell a SELECT INTO’s one row from its too many.
Source§fn prepare(&mut self, call: &Call<'_>) -> Answer
fn prepare(&mut self, call: &Call<'_>) -> Answer
PostgreSQL parses the statement string as Db2’s PREPARE does, so its errors come at PREPARE, and describes its result columns.
Source§fn insert_rows(
&mut self,
call: &Call<'_>,
rows: &[Vec<Value>],
atomic: bool,
) -> Answer
fn insert_rows( &mut self, call: &Call<'_>, rows: &[Vec<Value>], atomic: bool, ) -> Answer
ATOMIC inserts every row under the call’s one savepoint, so a failure undoes them all; NOT
ATOMIC gives each row its own, as Db2 keeps the rows that went in
(numeric::assumptions::NOT_ATOMIC_SUMMARY).
fn open(&mut self, call: &Call<'_>) -> Answer
Source§fn fetch_rows(&mut self, call: &Call<'_>, rows: u32) -> Answer
fn fetch_rows(&mut self, call: &Call<'_>, rows: u32) -> Answer
Up to
rows rows for a rowset FETCH, fewer at the end.fn close(&mut self, call: &Call<'_>) -> Answer
fn commit(&mut self, _: &Call<'_>) -> Answer
fn rollback(&mut self, _: &Call<'_>) -> Answer
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