Expand description
Create application-defined functions.
The functionality in this module is primarily exposed through Connection::create_scalar_function and Connection::create_aggregate_function.
Structs§
- Context
- Describes the run-time environment of an application-defined function.
- Function
Options
Traits§
- Aggregate
Function - Implement an application-defined aggregate window function.
- From
User Data - Constructor for aggregate functions.
- Legacy
Aggregate Function - Implement an application-defined aggregate function which cannot be used as a window function.
- Scalar
Function - Trait for scalar functions. This trait is used with
Connection::create_scalar_function_object to implement scalar functions that have a
lifetime smaller than
'static. It is also possible to use closures and avoid implementing this trait, see Connection::create_scalar_function for details. - ToContext
Result - A value that can be returned from an SQL function.