This module includes the sql_subscript
method, representing SQL
array accesses.
Public Instance methods
sql_subscript(*sub)
Return a Subscript
with the given arguments, representing an SQL
array access.
Sequel[:array].sql_subscript(1) # array[1] Sequel[:array].sql_subscript(1, 2) # array[1, 2] Sequel[:array].sql_subscript([1, 2]) # array[1, 2] Sequel[:array].sql_subscript(1..2) # array[1:2] Sequel[:array].sql_subscript(1...3) # array[1:2]
[show source]
# File lib/sequel/sql.rb 993 def sql_subscript(*sub) 994 Subscript.new(self, sub.flatten) 995 end