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§
Sourcefn prepare(
&mut self,
query: String,
callback: BoxedCallback<Box<dyn Statement>>,
)
fn prepare( &mut self, query: String, callback: BoxedCallback<Box<dyn Statement>>, )
Returns a prepared statement, bound to this connection.
fn begin(&mut self, callback: BoxedCallback<Box<dyn Transaction>>)
Sourcefn conn_status(&self) -> ConnStatus
fn conn_status(&self) -> ConnStatus
Sync returns connection status