Module: Cassie::Statements::Statement::Inserting::ClassMethods

Included in:
Cassie::Statements::Statement::Inserting
Defined in:
lib/cassie/statements/statement/inserting.rb

Instance Method Summary collapse

Instance Method Details

#insert_into(table) {|_self| ... } ⇒ void

This method returns an undefined value.

DSL to set the statement type and table for insertion

Parameters:

  • table (String, Symbol)

    The table to taret for the insert statement

Yields:

  • (_self)

Yield Parameters:



27
28
29
30
31
32
# File 'lib/cassie/statements/statement/inserting.rb', line 27

def insert_into(table)
  self.table = table
  self.type = :insert

  yield(self) if block_given?
end