Class: SqlStmt::InsertValues

Inherits:
FromQuery show all
Includes:
ValueUtil
Defined in:
lib/sqlstmt/insert_values.rb

Instance Attribute Summary

Attributes inherited from Query

#fields, #joins, #tables, #wheres

Instance Method Summary collapse

Methods included from ValueUtil

#field, #fieldq

Methods inherited from FromQuery

#group_by, #limit, #order_by

Methods inherited from Query

#join, #join_using, #left_join, #left_join_using, #no_where, #optional_where, #table, #to_s, #where

Constructor Details

#initializeInsertValues

Returns a new instance of InsertValues.



10
11
12
13
14
15
# File 'lib/sqlstmt/insert_values.rb', line 10

def initialize
  super
  @values = []
  @into_table = nil
  no_where
end

Instance Method Details

#into(table) ⇒ Object



17
18
19
20
21
# File 'lib/sqlstmt/insert_values.rb', line 17

def into(table)
  @into_table = table
  table(table)
  self
end