Module: Sequel::SQL::QualifyingMethods
- Included in:
- Identifier, QualifiedIdentifier, Symbol
- Defined in:
- lib/sequel/sql.rb
Overview
Includes a qualify
method that created QualifiedIdentifier
s, 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.
Instance Method Summary collapse
-
#*(ce = (arg=false;nil)) ⇒ Object
If no arguments are given, return an SQL::ColumnAll:.
-
#[](identifier) ⇒ Object
Qualify the receiver with the given
qualifier
(table for column/schema for table). -
#qualify(qualifier) ⇒ Object
Qualify the receiver with the given
qualifier
(table for column/schema for table).
Instance Method Details
#*(ce = (arg=false;nil)) ⇒ Object
If no arguments are given, return an SQL::ColumnAll:
Sequel[:a__b].* # a.b.*
952 953 954 955 956 957 958 |
# File 'lib/sequel/sql.rb', line 952 def *(ce=(arg=false;nil)) if arg == false Sequel::SQL::ColumnAll.new(self) else super(ce) end end |
#[](identifier) ⇒ Object
974 975 976 |
# File 'lib/sequel/sql.rb', line 974 def [](identifier) QualifiedIdentifier.new(self, identifier) end |
#qualify(qualifier) ⇒ Object
965 966 967 |
# File 'lib/sequel/sql.rb', line 965 def qualify(qualifier) QualifiedIdentifier.new(qualifier, self) end |