Trait Connection

Source
pub trait Connection: Send {
    // Required methods
    fn prepare(
        &mut self,
        query: String,
        callback: BoxedCallback<Box<dyn Statement>>,
    );
    fn begin(&mut self, callback: BoxedCallback<Box<dyn Transaction>>);
    fn conn_status(&self) -> ConnStatus;
    fn id(&self) -> &str;
}

Required Methods§

Source

fn prepare( &mut self, query: String, callback: BoxedCallback<Box<dyn Statement>>, )

Returns a prepared statement, bound to this connection.

Source

fn begin(&mut self, callback: BoxedCallback<Box<dyn Transaction>>)

Source

fn conn_status(&self) -> ConnStatus

Sync returns connection status

Source

fn id(&self) -> &str

Get connection unique id

Implementors§