Class: Sequel::SQL::ColumnAll
- Inherits:
-
Expression
- Object
- Expression
- Sequel::SQL::ColumnAll
- Defined in:
- lib/sequel/sql.rb
Overview
Represents all columns in a given table, table.* in SQL
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
The table containing the columns being selected.
Instance Method Summary collapse
-
#==(x) ⇒ Object
ColumnAll expressions are considered equivalent if they have the same class and string representation.
-
#initialize(table) ⇒ ColumnAll
constructor
Create an object with the given table.
Methods inherited from Expression
Constructor Details
#initialize(table) ⇒ ColumnAll
Create an object with the given table
525 526 527 |
# File 'lib/sequel/sql.rb', line 525 def initialize(table) @table = table end |
Instance Attribute Details
#table ⇒ Object (readonly)
The table containing the columns being selected
522 523 524 |
# File 'lib/sequel/sql.rb', line 522 def table @table end |
Instance Method Details
#==(x) ⇒ Object
ColumnAll expressions are considered equivalent if they have the same class and string representation
531 532 533 |
# File 'lib/sequel/sql.rb', line 531 def ==(x) x.class == self.class and @table == x.table end |