Class: Sequel::SQL::SQLArray

Inherits:
Expression show all
Defined in:
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.



750
751
752
# File 'lib/sequel/sql.rb', line 750

def initialize(array)
  @array = array
end

Instance Attribute Details

#arrayObject (readonly)

The array of objects this SQLArray wraps



747
748
749
# File 'lib/sequel/sql.rb', line 747

def array
  @array
end