Example #1
0
 /**
  * Execute a complex manipulation on the database.
  * A manipulation is an array of insert / or update sequences.  The keys of the array are table names,
  * and the values are map containing 'command' and 'fields'.  Command should be 'insert' or 'update',
  * and fields should be a map of field names to field values, including quotes.  The field value can
  * also be a SQL function or similar.
  * @param array $manipulation
  */
 static function manipulate($manipulation)
 {
     DB::$lastQuery = $manipulation;
     return DB::$globalConn->manipulate($manipulation);
 }