2010-08-16 17:56:56 -04:00
|
|
|
require 'arel/crud'
|
2010-12-07 14:44:32 -05:00
|
|
|
require 'arel/factory_methods'
|
2010-08-16 17:56:56 -04:00
|
|
|
|
2010-09-14 18:20:24 -04:00
|
|
|
require 'arel/expressions'
|
2010-10-27 09:43:20 -04:00
|
|
|
require 'arel/predications'
|
2011-01-29 01:40:39 -05:00
|
|
|
require 'arel/math'
|
2011-04-29 13:36:22 -04:00
|
|
|
require 'arel/alias_predication'
|
2011-04-28 04:11:50 -04:00
|
|
|
require 'arel/order_predications'
|
2010-08-12 14:24:16 -04:00
|
|
|
require 'arel/table'
|
2010-08-12 17:55:31 -04:00
|
|
|
require 'arel/attributes'
|
2010-08-16 20:44:48 -04:00
|
|
|
require 'arel/compatibility/wheres'
|
2010-08-13 15:26:06 -04:00
|
|
|
|
|
|
|
#### these are deprecated
|
|
|
|
# The Arel::Relation constant is referenced in Rails
|
|
|
|
require 'arel/relation'
|
2010-09-10 21:19:31 -04:00
|
|
|
require 'arel/expression'
|
2010-08-13 15:26:06 -04:00
|
|
|
####
|
|
|
|
|
2010-09-23 18:26:08 -04:00
|
|
|
require 'arel/visitors'
|
2010-09-23 14:45:29 -04:00
|
|
|
|
2010-08-12 19:19:54 -04:00
|
|
|
require 'arel/tree_manager'
|
2010-08-13 18:30:22 -04:00
|
|
|
require 'arel/insert_manager'
|
|
|
|
require 'arel/select_manager'
|
2010-08-14 21:29:32 -04:00
|
|
|
require 'arel/update_manager'
|
2010-08-18 14:32:44 -04:00
|
|
|
require 'arel/delete_manager'
|
2010-08-12 18:22:26 -04:00
|
|
|
require 'arel/nodes'
|
2010-08-12 17:55:31 -04:00
|
|
|
|
2010-11-29 18:44:02 -05:00
|
|
|
|
2010-08-13 11:11:08 -04:00
|
|
|
#### these are deprecated
|
2010-08-23 17:24:00 -04:00
|
|
|
require 'arel/deprecated'
|
2010-08-12 14:24:16 -04:00
|
|
|
require 'arel/sql/engine'
|
2010-08-12 18:26:04 -04:00
|
|
|
require 'arel/sql_literal'
|
2010-08-13 11:11:08 -04:00
|
|
|
####
|
|
|
|
|
2010-09-24 19:48:07 -04:00
|
|
|
module Arel
|
2011-08-08 18:46:54 -04:00
|
|
|
VERSION = '2.1.5'
|
2010-09-26 19:06:37 -04:00
|
|
|
|
2010-09-28 20:08:28 -04:00
|
|
|
def self.sql raw_sql
|
|
|
|
Arel::Nodes::SqlLiteral.new raw_sql
|
|
|
|
end
|
2010-12-22 21:02:56 -05:00
|
|
|
|
|
|
|
def self.star
|
|
|
|
sql '*'
|
|
|
|
end
|
2010-11-29 18:44:02 -05:00
|
|
|
## Convenience Alias
|
|
|
|
Node = Arel::Nodes::Node
|
2010-09-26 19:06:37 -04:00
|
|
|
end
|