return to top
source
A parameter encoder converts a typed value to an array of SQL parameter strings.
Encode no parameters.
Encode a non-nullable text parameter.
Encode a non-nullable integer parameter.
Encode a non-nullable natural number parameter.
Encode a non-nullable float parameter.
Encode a non-nullable boolean parameter.
Make any encoder nullable. none encodes as SQL NULL.
none
Contramap the input of an encoder.
Combine two encoders for a pair.
Combine three encoders for a triple.
Encode a value using its ToString instance.
ToString
none encoder has width 0.
text encoder has width 1.
text
int encoder has width 1.
int
nat encoder has width 1.
nat
bool encoder has width 1.
bool
nullable preserves width.
nullable
contramap preserves width.
contramap
pair width is the sum of its constituents' widths.
pair
triple width is the sum of all three widths.
triple