Module scalar

Source
Expand description

Define scalar functions on sqlite3 database connections.

Structs§

FunctionFlags
Represents the possible flag values that can be passed into sqlite3_create_function_v2 or sqlite3_create_window_function, as the 4th “eTextRep” parameter. Includes both the encoding options (utf8, utf16, etc.) and function-level parameters (deterministion, innocuous, etc.).

Functions§

define_scalar_function
Defines a new scalar function on the given database connection.
define_scalar_function_with_aux
Defines a new scalar function, but with the added ability to pass in an arbritary application “pointer” as any rust type. Can be accessed in the callback function as the 3rd argument, as a reference. https://www.sqlite.org/c3ref/create_function.html#:~:text=The%20fifth%20parameter%20is%20an%20arbitrary%20pointer.
delete_scalar_function