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]


1827
1828
1829
# File 'lib/sequel/sql.rb', line 1827

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