struct RethinkDB::Datum

Defined in:

driver/connection.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

!=(other : RethinkDB::DSL::R) !=, %(other : RethinkDB::DSL::R) %, &(other : RethinkDB::DSL::R) &, *(other : RethinkDB::DSL::R) *, +(other : RethinkDB::DSL::R) +, -(other : RethinkDB::DSL::R) -, /(other : RethinkDB::DSL::R) /, <(other : RethinkDB::DSL::R) <, <=(other : RethinkDB::DSL::R) <=, ==(other : RethinkDB::DSL::R) ==, >(other : RethinkDB::DSL::R) >, >=(other : RethinkDB::DSL::R) >=, |(other : RethinkDB::DSL::R) |

Constructor Detail

def self.new(value : ReQL::Datum | Datum | Array | Set | Bool | Float64 | Hash | NamedTuple | Int64 | Int32 | Time | String | Nil | Bytes | ReQL::Maxval | ReQL::Minval, runopts : RunOpts) #

[View source]

Instance Method Detail

def !=(other) #
Description copied from class Object

Returns true if this object is not equal to other.

By default this method is implemented as !(self == other) so there's no need to override this unless there's a more efficient way to do it.


[View source]
def ==(other) #
Description copied from struct Struct

Returns true if this struct is equal to other.

Both structs' instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p2 = Point.new 1, 2
p3 = Point.new 3, 4

p1 == p2 # => true
p1 == p3 # => false

[View source]
def array #

[View source]
def array? #

[View source]
def bool #

[View source]
def bool? #

[View source]
def bytes #

[View source]
def bytes? #

[View source]
def datum #

[View source]
def float #

[View source]
def float? #

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

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with #== by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


[View source]
def hash? #

[View source]
def inspect(io) #

[View source]
def int32 #

[View source]
def int32? #

[View source]
def int64 #

[View source]
def int64? #

[View source]
def string #

[View source]
def string? #

[View source]
def to_json(io) #

[View source]
def value : Array(Datum) | Bool | Float64 | Hash(String, Datum) | Int64 | Int32 | Time | String | Nil | Bytes #

[View source]