Class Sequel::SQL::SQLArray
In: lib/sequel_core/sql.rb
Parent: Expression

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.

Methods

new   to_s  

Public Class methods

Create an object with the given array.

[Source]

     # File lib/sequel_core/sql.rb, line 408
408:       def initialize(array)
409:         @array = array
410:       end

Public Instance methods

Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.

[Source]

     # File lib/sequel_core/sql.rb, line 414
414:       def to_s(ds)
415:         ds.array_sql(@array)
416:       end

[Validate]