struct Db::Value
- Db::Value
- Struct
- Value
- Object
Defined in:
crystal-sync/db/value.crConstructors
- .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(array : Array(String))
- .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 Method Summary
- #empty?
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #to_i
- #to_msgpack(packer : MessagePack::Packer)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #value
Constructor Detail
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)
#
Instance Method Detail
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
.