Struct xComLib::x_api::database::Connection
source · pub struct Connection { /* private fields */ }Implementations§
source§impl Connection
impl Connection
pub fn is_table_exist(&self, table_name: &str) -> ResultApiFuture<BoolResponse> ⓘ
pub fn query(&self, sql: &str) -> BytesApiFuture ⓘ
pub fn execute(&self, sql: &str) -> ResultApiFuture<DBExecuteResult> ⓘ
pub fn begin_tx(&self) -> CommonStatusFuture ⓘ
pub fn commit(&self) -> CommonStatusFuture ⓘ
pub fn rollback(&self) -> CommonStatusFuture ⓘ
pub async fn putback(self: &Arc<Self>) -> Status
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin 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