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 1712 def initialize(table, column) 1713 @table = convert_identifier(table) 1714 @column = convert_identifier(column) 1715 freeze 1716 end
Set the table and column to the given arguments
Public Instance Methods
Source
# File lib/sequel/sql.rb 1720 def function(*args) 1721 Function.new(self, *args) 1722 end
Create a Function
using this identifier as the functions name, with the given args.
Private Instance Methods
Source
# File lib/sequel/sql.rb 1729 def convert_identifier(identifier) 1730 case identifier 1731 when SQL::Identifier 1732 identifier.value.to_s 1733 else 1734 identifier 1735 end 1736 end
Automatically convert SQL::Identifiers to strings