Skip to main content

execute_sql

Function execute_sql 

Source
pub fn execute_sql(
    sql: &str,
    storage: &Arc<dyn StorageBackend>,
) -> SqlResult<ExecutionResult>
Expand description

Execute a SQL string against a storage backend, returning the result.

This is the unified entry point for all SQL execution:

let result = execute_sql("SELECT * FROM users WHERE age > 21", &storage)?;