Skip to main content

Executor

Type Alias Executor 

Source
pub type Executor = Arc<dyn Fn(&Statement) -> Result<Value> + Send + Sync>;
Expand description

What runs a statement: given it, returns its rows (an array) or an affected-row count (an integer).

PHP: the Closure(Statement): (array|int) of setExecutor() / withExecutor().

Aliased Typeยง

pub struct Executor { /* private fields */ }