Class: Virsandra::InsertQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/virsandra/queries/insert_query.rb

Instance Attribute Summary

Attributes inherited from Query

#row, #statement

Instance Method Summary collapse

Methods inherited from Query

#add, alter, delete, #execute, #fetch, #from, insert, #limit, #order, select, #where

Instance Method Details

#into(table_name) ⇒ Object



4
5
6
7
# File 'lib/virsandra/queries/insert_query.rb', line 4

def into(table_name)
  @into = TableQuery.new("INTO", table_name)
  self
end

#to_sObject



14
15
16
17
# File 'lib/virsandra/queries/insert_query.rb', line 14

def to_s
  validate
  super
end

#values(values) ⇒ Object



9
10
11
12
# File 'lib/virsandra/queries/insert_query.rb', line 9

def values(values)
  @values = ValuesQuery.new(values)
  self
end