module Sequel::SQL::QualifyingMethods

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

Public Instance Methods

qualify(qualifier) click to toggle source

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"
# File lib/sequel/sql.rb, line 782
def qualify(qualifier)
  QualifiedIdentifier.new(qualifier, self)
end