Macros§
- register_
extension - Register your extension with ‘core’ by providing the relevant functions
Structs§
Enums§
- Result
Code - Error type is of type ExtError which can be either a user defined error or an error code
- Value
Type
Traits§
Type Aliases§
- Extension
Entry Point - Finalize
Function - Init
AggFunction - Scalar
Function - Step
Function - Vtab
FnColumn - Vtab
FnConnect - Vtab
FnEof - Vtab
FnFilter - Vtab
FnNext - Vtab
FnOpen
Attribute Macros§
- scalar
- Declare a scalar function for your extension. This requires the name:
#[scalar(name = “example”)] of what you wish to call your function with.
Your function must use the signature:
fn (args: &[Value]) -> Valuewith proper spelling.
Derive Macros§
- Aggregate
Derive - Define an aggregate function for your extension by deriving AggregateDerive on a struct that implements the AggFunc trait.
- VTab
Module Derive - Macro to derive a VTabModule for your extension. This macro will generate the necessary functions to register your module with core. You must implement the VTabModule trait for your struct, and the VTabCursor trait for your cursor.