pub trait ConnectionTrait {
// Required methods
fn execute<S>(&self, stmt: S) -> Result<ExecResult>
where S: StatementInput;
fn query<S>(&self, stmt: S) -> Result<QueryResult>
where S: StatementInput;
fn show_table(&self, table_names: Vec<String>) -> Result<TableDescResult>;
fn begin(&self) -> Result<()>;
fn finish(&self) -> Result<()>;
fn commit(&self) -> Result<()>;
fn rollback(&self) -> Result<()>;
}
Required Methods§
Sourcefn execute<S>(&self, stmt: S) -> Result<ExecResult>where
S: StatementInput,
fn execute<S>(&self, stmt: S) -> Result<ExecResult>where
S: StatementInput,
Execute a [Statement]
INSETT,UPDATE,DELETE
Sourcefn query<S>(&self, stmt: S) -> Result<QueryResult>where
S: StatementInput,
fn query<S>(&self, stmt: S) -> Result<QueryResult>where
S: StatementInput,
Execute a [Statement]
and return a collection Vec<QueryResult> on success
fn show_table(&self, table_names: Vec<String>) -> Result<TableDescResult>
fn begin(&self) -> Result<()>
fn finish(&self) -> Result<()>
fn commit(&self) -> Result<()>
fn rollback(&self) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.