Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/directive_record/gem_ext/active_record/base.rb

Class Method Summary collapse

Class Method Details

.qry(*args) ⇒ Object



8
9
10
# File 'lib/directive_record/gem_ext/active_record/base.rb', line 8

def self.qry(*args)
  extract_connection(args).select_rows to_qry(*args)
end

.to_qry(*args) ⇒ Object



4
5
6
# File 'lib/directive_record/gem_ext/active_record/base.rb', line 4

def self.to_qry(*args)
  DirectiveRecord::Query.new(self, extract_connection(args)).to_sql(*args)
end

.to_trend_qry(q1, q2, join_column_count, options) ⇒ Object



12
13
14
# File 'lib/directive_record/gem_ext/active_record/base.rb', line 12

def self.to_trend_qry(q1, q2, join_column_count, options)
  DirectiveRecord::Query.new(self).to_trend_sql(q1, q2, join_column_count, options)
end