Trait Statement

Source
pub trait Statement {
    // Required methods
    fn execute_query(
        &mut self,
        params: &[Value],
    ) -> Result<Rc<RefCell<dyn ResultSet + '_>>>;
    fn execute_update(&mut self, params: &[Value]) -> Result<u64>;
}
Expand description

Represents an executable statement

Required Methods§

Source

fn execute_query( &mut self, params: &[Value], ) -> Result<Rc<RefCell<dyn ResultSet + '_>>>

Execute a query that is expected to return a result set, such as a SELECT statement

Source

fn execute_update(&mut self, params: &[Value]) -> Result<u64>

Execute a query that is expected to update some rows.

Implementors§