Module sqlfunc

Source

StructsΒ§

Modifiers πŸ”’
Modifiers passed as key-value pairs to the #[sqlfunc] macro.

EnumsΒ§

SqlName πŸ”’
A name for the SQL function. It can be either a literal or a macro, thus we can’t use String or syn::Expr directly.

FunctionsΒ§

arg_type πŸ”’
Determines the argument type of the nth argument of the function.
binary_func πŸ”’
Produce a EagerBinaryFunc implementation.
camel_case πŸ”’
Convert an identifier to a camel-cased identifier.
determine_parameters_arena πŸ”’
Determines the number of parameters to the function. Returns the number of parameters and whether the last parameter is a RowArena.
generate_test πŸ”’
output_type πŸ”’
Determine the output type for a function. Returns an error if the function does not return a value.
sqlfunc
Implementation for the #[sqlfunc] macro. The first parameter is the attribute arguments, the second is the function body. The third parameter indicates whether to include the test function in the output.
unary_func πŸ”’
Produce a EagerUnaryFunc implementation.