pub trait WorkflowSql {
// Required methods
fn execute(&self, sql: &str, bindings: &[Value]) -> Result<usize, String>;
fn query(
&self,
sql: &str,
bindings: &[Value],
) -> Result<Vec<Vec<Value>>, String>;
fn execute_batch(&self, sql: &str) -> Result<(), String>;
}Expand description
Synchronous SQL operations; callbacks must never yield to another request.
Required Methods§
Sourcefn execute(&self, sql: &str, bindings: &[Value]) -> Result<usize, String>
fn execute(&self, sql: &str, bindings: &[Value]) -> Result<usize, String>
Executes a statement and returns the number of changed rows.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".