Class: DistinctSelect

Inherits:
Select show all
Defined in:
lib/distinct_select.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from SqlStatement

#tables, #to_sql

Class Method Summary collapse

Methods inherited from Select

#[], all, distinct, #from, #inner_join, #join_table, #left_join, #on, #order_by, #right_join

Methods inherited from SqlStatement

#and, #and_with_or_conditions, #initialize, #or, #where

Constructor Details

This class inherits a constructor from SqlStatement

Class Method Details

.[](*columns) ⇒ Object



3
4
5
# File 'lib/distinct_select.rb', line 3

def [](*columns)
  self.new("select distinct #{columns.to_sql}")
end