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

#==, attr_reader, comparison_attrs, #eql?, #hash, #lit, #sql_literal

Constructor Details

#initialize(array) ⇒ SQLArray

Create an object with the given array.



856
857
858
# File 'lib/sequel/sql.rb', line 856

def initialize(array)
  @array = array
end

Instance Attribute Details

#arrayObject (readonly) Also known as: to_a

The array of objects this SQLArray wraps



852
853
854
# File 'lib/sequel/sql.rb', line 852

def array
  @array
end