Skip to content

Instantly share code, notes, and snippets.

@burke
Created September 19, 2011 19:12
Show Gist options
  • Save burke/1227301 to your computer and use it in GitHub Desktop.
Save burke/1227301 to your computer and use it in GitHub Desktop.
~/.rvm/gems/ruby-1.9.2-p290@core/gems/arel-2.2.1 ✖ ✈ ▸ ack -C2 private
lib/arel/predications.rb
149- end
150-
151: private
152-
153- def grouping_any method_id, others
lib/arel/select_manager.rb
280- end
281-
282: private
283- def collapse exprs, existing = nil
284- exprs = exprs.unshift(existing.expr) if existing
lib/arel/table.rb
124- end
125-
126: private
127-
128- def attributes_for columns
lib/arel/visitors/depth_first.rb
6- end
7-
8: private
9-
10- def visit o
lib/arel/visitors/dot.rb
28- end
29-
30: private
31- def visit_Arel_Nodes_Ordering o
32- visit_edge o, "expr"
lib/arel/visitors/ibm_db.rb
2- module Visitors
3- class IBM_DB < Arel::Visitors::ToSql
4: private
5-
6- def visit_Arel_Nodes_Limit o
lib/arel/visitors/informix.rb
2- module Visitors
3- class Informix < Arel::Visitors::ToSql
4: private
5- def visit_Arel_Nodes_SelectStatement o
6- [
lib/arel/visitors/join_sql.rb
10- # compatibility with Arel V1.0
11- module JoinSql
12: private
13-
14- def visit_Arel_Nodes_SelectCore o
lib/arel/visitors/mssql.rb
2- module Visitors
3- class MSSQL < Arel::Visitors::ToSql
4: private
5-
6- # `top` wouldn't really work here. I.e. User.select("distinct first_name").limit(10) would generate
lib/arel/visitors/mysql.rb
2- module Visitors
3- class MySQL < Arel::Visitors::ToSql
4: private
5- def visit_Arel_Nodes_Union o, suppress_parens = false
6- left_result = case o.left
lib/arel/visitors/oracle.rb
2- module Visitors
3- class Oracle < Arel::Visitors::ToSql
4: private
5-
6- def visit_Arel_Nodes_SelectStatement o
lib/arel/visitors/order_clauses.rb
2- module Visitors
3- class OrderClauses < Arel::Visitors::ToSql
4: private
5-
6- def visit_Arel_Nodes_SelectStatement o
lib/arel/visitors/postgresql.rb
2- module Visitors
3- class PostgreSQL < Arel::Visitors::ToSql
4: private
5- def visit_Arel_Nodes_Lock o
6- visit o.expr
lib/arel/visitors/sqlite.rb
2- module Visitors
3- class SQLite < Arel::Visitors::ToSql
4: private
5- def visit_Arel_Nodes_SelectStatement o
6- o.limit = Arel::Nodes::Limit.new(-1) if o.offset && !o.limit
lib/arel/visitors/to_sql.rb
20- end
21-
22: private
23- def last_column= col
24- Thread.current[:arel_visitors_to_sql_last_column] = col
lib/arel/visitors/visitor.rb
6- end
7-
8: private
9-
10- DISPATCH = Hash.new do |hash, klass|
~/.rvm/gems/ruby-1.9.2-p290@core/gems/arel-2.2.1 ✖ ✈ ▸
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment