Class: Sequel::SQL::SQLArray

Inherits:
Expression show all
Defined in:
lib/sequel/lib/sequel/sql.rb

Overview

Represents an SQL array. Added so it is possible to deal with a ruby array of all two pairs as an SQL array instead of an ordered hash-like conditions specifier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Expression

#lit

Constructor Details

#initialize(array) ⇒ SQLArray

Create an object with the given array.


788
789
790
# File 'lib/sequel/lib/sequel/sql.rb', line 788

def initialize(array)
  @array = array
end

Instance Attribute Details

#arrayObject (readonly)

The array of objects this SQLArray wraps


785
786
787
# File 'lib/sequel/lib/sequel/sql.rb', line 785

def array
  @array
end