Trait ConnectionTrait

Source
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§

Source

fn execute<S>(&self, stmt: S) -> Result<ExecResult>
where S: StatementInput,

Execute a [Statement] INSETT,UPDATE,DELETE

Source

fn query<S>(&self, stmt: S) -> Result<QueryResult>
where S: StatementInput,

Execute a [Statement] and return a collection Vec<QueryResult> on success

Source

fn show_table(&self, table_names: Vec<String>) -> Result<TableDescResult>

Source

fn begin(&self) -> Result<()>

Source

fn finish(&self) -> Result<()>

Source

fn commit(&self) -> Result<()>

Source

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.

Implementors§