Trait Routine
Source pub trait Routine<C: Context>: Send + Sync {
// Required methods
fn info(&self) -> &RoutineInfo;
fn return_type(&self, input_types: &[Type]) -> Type;
fn execute(
&self,
ctx: &mut C,
args: &Columns,
) -> Result<Columns, RoutineError>;
// Provided methods
fn accepted_types(&self) -> InputTypes { ... }
fn propagates_options(&self) -> bool { ... }
fn attaches_row_metadata(&self) -> bool { ... }
fn call(&self, ctx: &mut C, args: &Columns) -> Result<Columns, RoutineError> { ... }
}