Skip to content

Commit

Permalink
added support for insert select
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjgreen committed Nov 2, 2014
1 parent fca2d19 commit 9d019f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Query/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ public function compileInsertIgnore(Builder $query, array $values)
return $this->doCompileInsert($query, $values, 'insert or ignore');
}

/**
* Compile a replace statement into SQL.
*
* @param \Database\Query\Builder $query
* @param array $values
* @return string
*/
public function compileReplace(Builder $query, array $values)
{
return $this->doCompileInsert($query, $values, 'insert or replace');
}

/**
* Compile a truncate table statement into SQL.
*
Expand Down

0 comments on commit 9d019f1

Please sign in to comment.