pub struct Connection { /* private fields */ }Expand description
A connection that can hold one transaction across multiple statements.
Implementations§
Source§impl Connection
impl Connection
pub fn execute(&mut self, stmt: &Statement) -> Result<StatementResult, DbError>
pub fn execute_sql( &mut self, sql: &str, ) -> Result<Vec<StatementResult>, DbError>
pub fn in_transaction(&self) -> bool
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Return the committed generation visible to this connection’s database.
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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