class CQL::Postgres::Types::DeferredValue(T)

Defined in:

postgres/types/param.cr

Constructors

Instance Method Summary

Instance methods inherited from class CQL::Postgres::Types::Deferred

resolve(type_oid : UInt32 | Nil, text_only : Indexable(UInt32)) : Param resolve, size_hint : Int32 size_hint

Constructor Detail

def self.new(value : T) #

[View source]

Instance Method Detail

def inspect(io : IO) : Nil #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def resolve(type_oid : UInt32 | Nil, text_only : Indexable(UInt32)) : Param #

Binary when the server's type has an encoding for the value (and is not one the server reads differently from its text), otherwise exactly the text the value would have been sent as.


[View source]
def size_hint : Int32 #
Description copied from class CQL::Postgres::Types::Deferred

About how many bytes the parameter will take, for sizing a pipeline batch.


[View source]