Class: Sequel::Qualifier
- Inherits:
-
ASTTransformer
- Object
- ASTTransformer
- Sequel::Qualifier
- Defined in:
- lib/sequel/ast_transformer.rb
Overview
Handles qualifying existing datasets, so that unqualified columns in the dataset are qualified with a given table name.
Instance Method Summary collapse
-
#initialize(table, unused = nil) ⇒ Qualifier
constructor
Set the table used to qualify unqualified columns.
Methods inherited from ASTTransformer
Constructor Details
#initialize(table, unused = nil) ⇒ Qualifier
Set the table used to qualify unqualified columns
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/sequel/ast_transformer.rb', line 93 def initialize(table, unused=nil) if unused # :nocov: Sequel::Deprecation.deprecate("Passing two arguments to Sequel::Qualifier.new", 'Pass only the second argument specifying the table used for qualification') @table = unused # :nocov: else @table = table end end |