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 855
855:       def *(ce=(arg=false;nil))
856:         if arg == false
857:           Sequel::SQL::ColumnAll.new(self)
858:         else
859:           super(ce)
860:         end
861:       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 868
868:       def qualify(qualifier)
869:         QualifiedIdentifier.new(qualifier, self)
870:       end

[Validate]