struct CQL::Postgres::Types::Codec

Overview

How one column type travels and is turned into a Crystal value. #binary must match the result format requested in Bind: a binary codec fed text (or the reverse) decodes garbage without failing.

Defined in:

postgres/types/codecs.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(binary : Bool, decode : Proc(Bytes, Value)) #

[View source]

Instance Method Detail

def binary : Bool #

def clone #

[View source]
def copy_with(binary _binary = @binary, decode _decode = @decode) #

[View source]
def decode : Proc(Bytes, Value) #

def format : Int16 #

[View source]