Class: SqlStmt::InsertValues
- Includes:
- ValueUtil
- Defined in:
- lib/sqlstmt/insert_values.rb
Instance Attribute Summary
Attributes inherited from Query
#fields, #joins, #tables, #wheres
Instance Method Summary collapse
-
#initialize ⇒ InsertValues
constructor
A new instance of InsertValues.
- #into(table) ⇒ Object
Methods included from ValueUtil
Methods inherited from FromQuery
Methods inherited from Query
#join, #join_using, #left_join, #left_join_using, #no_where, #optional_where, #table, #to_s, #where
Constructor Details
#initialize ⇒ InsertValues
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 |