Module: Arel

Defined in:
lib/arel.rb,
lib/arel/crud.rb,
lib/arel/math.rb,
lib/arel/table.rb,
lib/arel/nodes/in.rb,
lib/arel/relation.rb,
lib/arel/visitors.rb,
lib/arel/nodes/and.rb,
lib/arel/attributes.rb,
lib/arel/deprecated.rb,
lib/arel/expression.rb,
lib/arel/nodes/node.rb,
lib/arel/nodes/over.rb,
lib/arel/nodes/true.rb,
lib/arel/nodes/with.rb,
lib/arel/sql/engine.rb,
lib/arel/expressions.rb,
lib/arel/nodes/count.rb,
lib/arel/nodes/false.rb,
lib/arel/nodes/unary.rb,
lib/arel/sql_literal.rb,
lib/arel/nodes/binary.rb,
lib/arel/nodes/values.rb,
lib/arel/nodes/window.rb,
lib/arel/predications.rb,
lib/arel/tree_manager.rb,
lib/arel/visitors/dot.rb,
lib/arel/nodes/extract.rb,
lib/arel/delete_manager.rb,
lib/arel/insert_manager.rb,
lib/arel/nodes/equality.rb,
lib/arel/nodes/function.rb,
lib/arel/nodes/ordering.rb,
lib/arel/nodes/terminal.rb,
lib/arel/select_manager.rb,
lib/arel/update_manager.rb,
lib/arel/visitors/mssql.rb,
lib/arel/visitors/mysql.rb,
lib/arel/factory_methods.rb,
lib/arel/nodes/ascending.rb,
lib/arel/visitors/ibm_db.rb,
lib/arel/visitors/oracle.rb,
lib/arel/visitors/sqlite.rb,
lib/arel/visitors/to_sql.rb,
lib/arel/nodes/descending.rb,
lib/arel/nodes/inner_join.rb,
lib/arel/nodes/outer_join.rb,
lib/arel/visitors/visitor.rb,
lib/arel/alias_predication.rb,
lib/arel/nodes/join_source.rb,
lib/arel/nodes/select_core.rb,
lib/arel/nodes/sql_literal.rb,
lib/arel/nodes/string_join.rb,
lib/arel/nodes/table_alias.rb,
lib/arel/visitors/informix.rb,
lib/arel/visitors/join_sql.rb,
lib/arel/order_predications.rb,
lib/arel/visitors/where_sql.rb,
lib/arel/visitors/postgresql.rb,
lib/arel/window_predications.rb,
lib/arel/attributes/attribute.rb,
lib/arel/compatibility/wheres.rb,
lib/arel/nodes/named_function.rb,
lib/arel/visitors/depth_first.rb,
lib/arel/nodes/infix_operation.rb,
lib/arel/visitors/bind_visitor.rb,
lib/arel/nodes/delete_statement.rb,
lib/arel/nodes/insert_statement.rb,
lib/arel/nodes/select_statement.rb,
lib/arel/nodes/update_statement.rb,
lib/arel/visitors/order_clauses.rb,
lib/arel/nodes/unqualified_column.rb

Defined Under Namespace

Modules: AliasPredication, Attributes, Compatibility, Crud, Expression, Expressions, FactoryMethods, Math, Nodes, OrderPredications, Predications, Relation, Sql, Visitors, WindowPredications Classes: DeleteManager, InsertManager, SelectManager, SqlLiteral, Table, TreeManager, UpdateManager

Constant Summary collapse

VERSION =
'3.0.3'
Node =

Convenience Alias

Arel::Nodes::Node
InnerJoin =
Nodes::InnerJoin
OuterJoin =
Nodes::OuterJoin
Attribute =
Attributes::Attribute

Class Method Summary collapse

Class Method Details

.sql(raw_sql) ⇒ Object



39
40
41
# File 'lib/arel.rb', line 39

def self.sql raw_sql
  Arel::Nodes::SqlLiteral.new raw_sql
end

.starObject



43
44
45
# File 'lib/arel.rb', line 43

def self.star
  sql '*'
end