class Sequel::SQL::QualifiedIdentifier
Represents a qualified identifier (column with table or table with schema).
Attributes
The column/table referenced
The table/schema qualifying the reference
Public Class Methods
Source
# File lib/sequel/sql.rb 1718 def initialize(table, column) 1719 @table = convert_identifier(table) 1720 @column = convert_identifier(column) 1721 freeze 1722 end
Set the table and column to the given arguments
Public Instance Methods
Source
# File lib/sequel/sql.rb 1726 def function(*args) 1727 Function.new(self, *args) 1728 end
Create a Function
using this identifier as the functions name, with the given args.
Private Instance Methods
Source
# File lib/sequel/sql.rb 1735 def convert_identifier(identifier) 1736 case identifier 1737 when SQL::Identifier 1738 identifier.value.to_s 1739 else 1740 identifier 1741 end 1742 end
Automatically convert SQL::Identifiers to strings