struct Db::Value

Defined in:

crystal-sync/db/value.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(string : String | Char) #

[View source]
def self.new(int : Int8 | Int16 | Int32 | UInt32 | Int64) #

[View source]
def self.new(pointer : Slice) #

[View source]
def self.new(time : Time) #

[View source]
def self.new(bool : Bool) #

[View source]
def self.new(float : Float64 | Float32) #

[View source]
def self.new(array : Array(String)) #

[View source]
def self.new(value : Array(PG::BoolArray) | Array(PG::CharArray) | Array(PG::Float32Array) | Array(PG::Float64Array) | Array(PG::Int16Array) | Array(PG::Int32Array) | Array(PG::Int64Array) | Array(PG::NumericArray) | Array(PG::StringArray) | Array(PG::TimeArray) | JSON::Any | PG::Geo::Box | PG::Geo::Circle | PG::Geo::Line | PG::Geo::LineSegment | PG::Geo::Path | PG::Geo::Path | PG::Geo::Point | PG::Geo::Polygon | PG::Numeric | Time::Span) #

[View source]
def self.new(nothing : Nil) #

[View source]

Instance Method Detail

def empty? #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def to_i #

[View source]
def to_msgpack(packer : MessagePack::Packer) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def value #

[View source]