module
CQL::Postgres::Types::ParamEncoder
Overview
Turns Crystal values into bind parameters. The server infers each parameter's type from the statement and parses the text form.
Defined in:
postgres/types/param.crClass Method Summary
-
.encode(value, binary : Bool) : Param
With binary the value is kept until the statement's parameter types are known, when it may be sent in binary (see
Binary.supported?). - .encode(value : Nil) : Param
- .encode(value : Bytes) : Param
- .encode(value : String) : Param
- .encode(value : Bool | Int | Float | UUID | DecimalText | Time | JSON::Any) : Param
- .encode(value : Array) : Param
- .encode(value) : Param
Class Method Detail
With binary the value is kept until the statement's parameter types are
known, when it may be sent in binary (see Binary.supported?).