Class Sequel::SQL::ColumnAll
In: lib/sequel_core/sql.rb
Parent: SpecificExpression

Represents all columns in a given table, table.* in SQL

Methods

==   new   to_s  

Attributes

table  [R]  The table containing the columns being selected

Public Class methods

Create an object with the given table

[Source]

     # File lib/sequel_core/sql.rb, line 525
525:       def initialize(table)
526:         @table = table
527:       end

Public Instance methods

ColumnAll expressions are considered equivalent if they have the same class and string representation

[Source]

     # File lib/sequel_core/sql.rb, line 531
531:       def ==(x)
532:         x.class == self.class && @table == x.table
533:       end

Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.

[Source]

     # File lib/sequel_core/sql.rb, line 537
537:       def to_s(ds)
538:         ds.column_all_sql(self)
539:       end

[Validate]