[][src]Trait rbatis_drivers::Connection

pub trait Connection: Send {
    fn create(&mut self, sql: &str) -> Result<Box<dyn Statement>>;
fn prepare(&mut self, sql: &str) -> Result<Box<dyn Statement>>;
fn is_valid(&mut self) -> bool; }

Represents a connection to a database

Required methods

fn create(&mut self, sql: &str) -> Result<Box<dyn Statement>>

Create a statement for execution

fn prepare(&mut self, sql: &str) -> Result<Box<dyn Statement>>

Create a prepared statement for execution

fn is_valid(&mut self) -> bool

Loading content...

Implementors

Loading content...