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 1719 def initialize(table, column) 1720 @table = convert_identifier(table) 1721 @column = convert_identifier(column) 1722 freeze 1723 end
Set the table and column to the given arguments
Public Instance Methods
Source
# File lib/sequel/sql.rb 1727 def function(*args) 1728 Function.new(self, *args) 1729 end
Create a Function using this identifier as the functions name, with the given args.
Private Instance Methods
Source
# File lib/sequel/sql.rb 1736 def convert_identifier(identifier) 1737 if identifier.is_a?(SQL::Identifier) 1738 identifier = identifier.value 1739 identifier = identifier.to_s unless identifier.is_a?(LiteralString) 1740 end 1741 identifier 1742 end
Automatically convert SQL::Identifiers to strings