Expand description
Source text the scalar function registry records for each #[sqlfunc].
The registry compares a function’s declaration, its types-only signature, and a fingerprint of its body across builds, so every string here depends only on the tokens the call site wrote, not on how they were spaced or commented.
Functions§
- fnv1a64 🔒
- FNV-1a, 64 bit. A fingerprint, not a secure hash: it only needs to be stable across builds and sensitive to any change in its input.
- probe_
column_ 🔒type - An expression of type
Option<SqlColumnType>: the column type oftyif it implementsAsColumnType, elseNone. Resolved by autoref specialization onColumnTypeProbe, so it needs no trait bound the macro cannot check. - probe_
column_ 🔒types - One probe expression per datum a parameter consumes.
Variadic<T>stands for twoTarguments andOptionalArg<T>for one presentT. - render_
into 🔒 - render_
tokens 🔒 - Renders a token stream as compact, canonical source text.
- single_
generic_ 🔒arg - The last path segment’s name and its single type argument, for types
shaped like
Wrapper<T>. - sqlfunc_
source 🔒 - Emits the source-derived members of the generated
FuncNameimpl: theSQLFUNCconst (declaration text, types-only signature, body fingerprint) andsqlfunc_input_types, which yields the column types the function naturally consumes when every parameter type has one. Both exist only under mz-expr’sfunc-registryfeature, like the trait members they implement. - staticize_
lifetimes 🔒 - Replaces every lifetime in
tywith'static, so a type written against the trait impl’s'acan be named in a function body.