INSERT/REPLACE functionality

Review Request #12 — Created Nov. 7, 2012 and submitted — Latest diff uploaded

Felipe
Lunr
https://github.com/madsmash/lunr/tree/insert
lunr
Modified Query Builder to support INSERT and REPLACE functionality. Supports using extended inserts, SET and SELECT statements for the data to insert.

Set clause can be used in two ways, either with multiple calls like:
$builder->set(array('column1'=>'value1'))->set(array('column2'=>'value2'))...
AND/OR
$builder->set(array('column1'=>'value1', 'column2'=>'value2')

Values clause can be used in two ways as well, either with multiple calls like:
$builder->values(array('value1col1','value1col2','value1col3'))->values(array('value2col1','value2col2','value2col3'))....
AND/OR
$builder->values(array(array('value1col1','value1col2','value1col3'),array('value2col1','value2col2','value2col3')))


I will continue making small changes to spam your email until someone reviews it...
All unitests passed
Loading file attachments...

Loading...