Module Sequel::SQL::QualifyingMethods
In: lib/sequel/sql.rb

Includes a qualify method that created QualifiedIdentifiers, used for qualifying column names with a table or table names with a schema, and the * method for returning all columns in the identifier if no arguments are given.

Methods

*   qualify  

Public Instance methods

If no arguments are given, return an SQL::ColumnAll:

  Sequel.expr(:a__b).*  # a.b.*

[Source]

     # File lib/sequel/sql.rb, line 870
870:       def *(ce=(arg=false;nil))
871:         if arg == false
872:           Sequel::SQL::ColumnAll.new(self)
873:         else
874:           super(ce)
875:         end
876:       end

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

  Sequel.expr(:column).qualify(:table) # "table"."column"
  Sequel.expr(:table).qualify(:schema) # "schema"."table"
  Sequel.qualify(:table, :column).qualify(:schema) # "schema"."table"."column"

[Source]

     # File lib/sequel/sql.rb, line 883
883:       def qualify(qualifier)
884:         QualifiedIdentifier.new(qualifier, self)
885:       end

[Validate]