Module modifiers

Module modifiers 

Source
Expand description

Argument modifiers and helpers for builders.

Structs§

Raw
Raw: inline SQL fragment without becoming a placeholder.
RcBuilder
RcBuilder: wrap Rc<RefCell<T>> as a Builder to enable shared, late-bound builders.
SqlNamedArg
SqlNamedArg: helper for @name placeholders inside SQL.

Enums§

Arg
Dynamic argument types used by the Builder/Args system.

Traits§

Builder
Builder: trait for objects that can build SQL (nestable).
FlattenIntoArgs
Trait-based implementation of recursive flattening.

Functions§

escape
Escape: replace $ with $$ to avoid being parsed as an expression by Args::compile.
escape_all
EscapeAll: escape a collection of identifiers.
flatten
Flatten: recursively expand values into argument list (trait-based, no reflection).
list
List: mark as argument list; expands to ?, ?, ? (or flavor-specific placeholders).
named
Named: named parameter used by Build/BuildNamed via ${name}.
raw
rc_builder
tuple
Tuple: mark as tuple; expands to (?, ?) (or flavor-specific placeholders).
tuple_names
TupleNames: build a column tuple string like (a, b, c) without escaping.