module Cassie::Statements::Statement::Inserting::ClassMethods

@!parse extend ClassMethods

Public Instance Methods

insert_into(table) { |self| ... } click to toggle source

DSL to set the statement type and table for insertion @param [String, Symbol] table The table to taret for the insert statement @return [void]

# 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