Skip to main content

Module sqlfunc

Module sqlfunc 

Source
Expand description

The #[sqlfunc] attribute macro’s entry point.

Parses the attribute, classifies the annotated function’s arity, and hands the matching crate::shape::Shape to crate::generate::generate.

Functions§

determine_shape 🔒
The shape of a function annotated with #[sqlfunc], or None for a function without SQL arguments.
generate_test 🔒
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.