class Sequel::SQL::QualifiedIdentifier
Represents a qualified identifier (column with table or table with schema).
Attributes
column[R]
The column/table referenced
table[R]
The table/schema qualifying the reference
Public Class Methods
new(table, column)
click to toggle source
Set the table and column to the given arguments
# File lib/sequel/sql.rb 1709 def initialize(table, column) 1710 @table = convert_identifier(table) 1711 @column = convert_identifier(column) 1712 freeze 1713 end
Public Instance Methods
function(*args)
click to toggle source
Create a Function
using this identifier as the functions name, with the given args.
# File lib/sequel/sql.rb 1717 def function(*args) 1718 Function.new(self, *args) 1719 end
Private Instance Methods
convert_identifier(identifier)
click to toggle source
Automatically convert SQL::Identifiers to strings
# File lib/sequel/sql.rb 1726 def convert_identifier(identifier) 1727 case identifier 1728 when SQL::Identifier 1729 identifier.value.to_s 1730 else 1731 identifier 1732 end 1733 end