pub trait Statement: Send {
// Required methods
fn num_input(&self, callback: BoxedCallback<Option<usize>>);
fn execute(
&mut self,
args: Vec<Argument>,
callback: BoxedCallback<ExecResult>,
);
fn query(
&mut self,
args: Vec<Argument>,
callback: BoxedCallback<Box<dyn Rows>>,
);
}
Expand description
Statement driver provider trait
Required Methods§
Sourcefn num_input(&self, callback: BoxedCallback<Option<usize>>)
fn num_input(&self, callback: BoxedCallback<Option<usize>>)
Returns the number of placeholder parameters.
May returns None
, if the driver doesn’t know its number of placeholder
Sourcefn execute(&mut self, args: Vec<Argument>, callback: BoxedCallback<ExecResult>)
fn execute(&mut self, args: Vec<Argument>, callback: BoxedCallback<ExecResult>)
Executes a query that doesn’t return rows, such as an INSERT or UPDATE.