Module: Sequel::SQL::QualifyingMethods

Included in:
Identifier, QualifiedIdentifier, Symbol
Defined in:
lib/sequel/sql.rb

Overview

Includes a qualify method that created QualifiedIdentifiers, used for qualifying column names with a table or table names with a schema.

Instance Method Summary collapse

Instance Method Details

#qualify(qualifier) ⇒ Object

Qualify the receiver with the given qualifier (table for column/schema for table).

:column.qualify(:table) # "table"."column"
:table.qualify(:schema) # "schema"."table"
:column.qualify(:table).qualify(:schema) # "schema"."table"."column"


782
783
784
# File 'lib/sequel/sql.rb', line 782

def qualify(qualifier)
  QualifiedIdentifier.new(qualifier, self)
end