Db::Value
Inherits Struct < Value < Object
Constructors
new(string : String | Char)
new(int : Int8 | Int16 | Int32 | UInt32 | Int64)
new(pointer : Slice)
new(time : Time)
new(bool : Bool)
new(float : Float64 | Float32)
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)
new(nothing : Nil)
Instance methods
empty?
inspect
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.
to_i
to_msgpack(packer : MessagePack::Packer)
to_s
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.
value