Module: Arel::FactoryMethods

### Home Classes Methods

### In Files

- lib/arel/factory_methods.rb

### Methods

- #create_and
- #create_false
- #create_join
- #create_on
- #create_string_join
- #create_table_alias
- #create_true
- #grouping
- #lower

### Files

- History.txt
- MIT-LICENSE.txt

### Class/Module Index

Quicksearch

- Arel
- Arel::AliasPredication
- Arel::Attributes
- Arel::Attributes::Attribute
- Arel::Attributes::Boolean
- Arel::Attributes::Decimal
- Arel::Attributes::Float
- Arel::Attributes::Integer
- Arel::Attributes::String
- Arel::Attributes::Time
- Arel::Attributes::Undefined
- Arel::Collectors
- Arel::Collectors::Bind
- Arel::Collectors::PlainString
- Arel::Collectors::SQLString
- Arel::Crud
- Arel::DeleteManager
- Arel::Expressions
- Arel::FactoryMethods
- Arel::InsertManager
- Arel::Math
- Arel::Nodes
- Arel::Nodes::Addition
- Arel::Nodes::And
- Arel::Nodes::Ascending
- Arel::Nodes::Binary
- Arel::Nodes::BindParam
- Arel::Nodes::Count
- Arel::Nodes::CurrentRow
- Arel::Nodes::DeleteStatement
- Arel::Nodes::Descending
- Arel::Nodes::Distinct
- Arel::Nodes::Division
- Arel::Nodes::DoesNotMatch
- Arel::Nodes::Equality
- Arel::Nodes::Extract
- Arel::Nodes::False
- Arel::Nodes::Following
- Arel::Nodes::FullOuterJoin
- Arel::Nodes::Function
- Arel::Nodes::Grouping
- Arel::Nodes::In
- Arel::Nodes::InfixOperation
- Arel::Nodes::InnerJoin
- Arel::Nodes::InsertStatement
- Arel::Nodes::JoinSource
- Arel::Nodes::Matches
- Arel::Nodes::Multiplication
- Arel::Nodes::NamedFunction
- Arel::Nodes::NamedWindow
- Arel::Nodes::Node
- Arel::Nodes::OuterJoin
- Arel::Nodes::Over
- Arel::Nodes::Preceding
- Arel::Nodes::Range
- Arel::Nodes::RightOuterJoin
- Arel::Nodes::Rows
- Arel::Nodes::SelectCore
- Arel::Nodes::SelectStatement
- Arel::Nodes::SqlLiteral
- Arel::Nodes::StringJoin
- Arel::Nodes::Subtraction
- Arel::Nodes::TableAlias
- Arel::Nodes::True
- Arel::Nodes::Unary
- Arel::Nodes::UnqualifiedColumn
- Arel::Nodes::UpdateStatement
- Arel::Nodes::Values
- Arel::Nodes::Window
- Arel::Nodes::With
- Arel::Nodes::WithRecursive
- Arel::OrderPredications
- Arel::Predications
- Arel::SelectManager
- Arel::Table
- Arel::TreeManager
- Arel::UpdateManager
- Arel::Visitors
- Arel::Visitors::BindSubstitute
- Arel::Visitors::BindVisitor
- Arel::Visitors::DepthFirst
- Arel::Visitors::Dot
- Arel::Visitors::IBM_DB
- Arel::Visitors::Informix
- Arel::Visitors::MSSQL
- Arel::Visitors::MySQL
- Arel::Visitors::Oracle
- Arel::Visitors::PostgreSQL
- Arel::Visitors::Reduce
- Arel::Visitors::SQLite
- Arel::Visitors::ToSql
- Arel::Visitors::Visitor
- Arel::Visitors::WhereSql
- Arel::WindowPredications

No matching classes.

# Arel::FactoryMethods

Methods for creating various nodes

### Public Instance Methods

create_and(clauses) click to toggle source

    # File lib/arel/factory_methods.rb, line 25
    def create_and clauses
      Nodes::And.new clauses
    end

create_false() click to toggle source

    # File lib/arel/factory_methods.rb, line 9
    def create_false
      Arel::Nodes::False.new
    end

create_join(to, constraint = nil, klass = Nodes::InnerJoin) click to toggle source

    # File lib/arel/factory_methods.rb, line 17
    def create_join to, constraint = nil, klass = Nodes::InnerJoin
      klass.new(to, constraint)
    end

create_on(expr) click to toggle source

    # File lib/arel/factory_methods.rb, line 29
    def create_on expr
      Nodes::On.new expr
    end

create_string_join(to) click to toggle source

    # File lib/arel/factory_methods.rb, line 21
    def create_string_join to
      create_join to, nil, Nodes::StringJoin
    end

create_table_alias(relation, name) click to toggle source

    # File lib/arel/factory_methods.rb, line 13
    def create_table_alias relation, name
      Nodes::TableAlias.new(relation, name)
    end

create_true() click to toggle source

    # File lib/arel/factory_methods.rb, line 5
    def create_true
      Arel::Nodes::True.new
    end

grouping(expr) click to toggle source

    # File lib/arel/factory_methods.rb, line 33
    def grouping expr
      Nodes::Grouping.new expr
    end

lower(column) click to toggle source

Create a LOWER() function

    # File lib/arel/factory_methods.rb, line 39
    def lower column
      Nodes::NamedFunction.new 'LOWER', [Nodes.build_quoted(column)]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.