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.cr

Class Method Summary

Class Method Detail

def self.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?).


[View source]
def self.encode(value : Nil) : Param #

[View source]
def self.encode(value : Bytes) : Param #

[View source]
def self.encode(value : String) : Param #

[View source]
def self.encode(value : Bool | Int | Float | UUID | DecimalText | Time | JSON::Any) : Param #

[View source]
def self.encode(value : Array) : Param #

[View source]
def self.encode(value) : Param #

[View source]