Method: Sequel::SQL::Subscript#|

Defined in:
lib/sequel/sql.rb

#|(sub) ⇒ Object

Create a new Subscript appending the given subscript(s) to the current array of subscripts.

Sequel[:a].sql_subscript(2) # a[2]
Sequel[:a].sql_subscript(2) | 1 # a[2, 1]


1819
1820
1821
# File 'lib/sequel/sql.rb', line 1819

def |(sub)
  Subscript.new(@expression, @sub + Array(sub))
end