arel.rb 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. require 'arel/crud'
  2. require 'arel/factory_methods'
  3. require 'arel/expressions'
  4. require 'arel/predications'
  5. require 'arel/math'
  6. require 'arel/alias_predication'
  7. require 'arel/order_predications'
  8. require 'arel/table'
  9. require 'arel/attributes'
  10. require 'arel/compatibility/wheres'
  11. #### these are deprecated
  12. # The Arel::Relation constant is referenced in Rails
  13. require 'arel/relation'
  14. require 'arel/expression'
  15. ####
  16. require 'arel/visitors'
  17. require 'arel/tree_manager'
  18. require 'arel/insert_manager'
  19. require 'arel/select_manager'
  20. require 'arel/update_manager'
  21. require 'arel/delete_manager'
  22. require 'arel/nodes'
  23. #### these are deprecated
  24. require 'arel/deprecated'
  25. require 'arel/sql/engine'
  26. require 'arel/sql_literal'
  27. ####
  28. module Arel
  29. VERSION = '3.0.2'
  30. def self.sql raw_sql
  31. Arel::Nodes::SqlLiteral.new raw_sql
  32. end
  33. def self.star
  34. sql '*'
  35. end
  36. ## Convenience Alias
  37. Node = Arel::Nodes::Node
  38. end