Parent

Files

Class Index [+]

Quicksearch

Arel::Insert

Attributes

record[R]

Public Class Methods

new(relation, record) click to toggle source
    # File lib/arel/algebra/relations/writes.rb, line 18
18:     def initialize(relation, record)
19:       super(relation)
20:       @record = record.bind(relation)
21:     end

Public Instance Methods

call() click to toggle source
    # File lib/arel/algebra/relations/writes.rb, line 23
23:     def call
24:       engine.create(self)
25:     end
eval() click to toggle source
    # File lib/arel/algebra/relations/writes.rb, line 27
27:     def eval
28:       unoperated_rows + [Row.new(self, record.values.collect(&:value))]
29:     end
to_sql(include_returning = true) click to toggle source
    # File lib/arel/algebra/relations/writes.rb, line 31
31:     def to_sql(include_returning = true)
32:       compiler.insert_sql(include_returning)
33:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.