Crate risingwave_expr_macro

Source

Modulesยง

context ๐Ÿ”’
gen ๐Ÿ”’
Generate code for the functions.
parse ๐Ÿ”’
Parse the tokens of the macro.
types ๐Ÿ”’
This module provides utility functions for SQL data type conversion and manipulation.
utils ๐Ÿ”’

Macrosยง

define_context
Define the context variables which can be used by risingwave expressions.

Structsยง

AggregateImpl ๐Ÿ”’
FunctionAttr ๐Ÿ”’
UserFunctionAttr ๐Ÿ”’
Attributes from function signature fn(..)

Enumsยง

AggregateFnOrImpl ๐Ÿ”’
ReturnTypeKind ๐Ÿ”’

Attribute Macrosยง

aggregate
build_aggregate
build_function
Different from #[function], which implements the Expression trait for a rust scalar function, #[build_function] is used when you already implemented Expression manually.
capture_context
Capture the context from the local context to the function impl. TODO: The macro will be merged to #[function(.., capture_context(..))] later.
function
Defining the RisingWave SQL function from a Rust function.