Add insertIgnoreConflict to IDBConnection interface.
Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
This commit is contained in:
parent
d62da82bf9
commit
63350423d4
1 changed files with 14 additions and 0 deletions
|
@ -120,6 +120,20 @@ interface IDBConnection {
|
|||
*/
|
||||
public function insertIfNotExist($table, $input, array $compare = null);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Insert a row if the row does not exist. Eventual conflicts during insert will be ignored.
|
||||
*
|
||||
* Implementation is not fully finished and should not be used!
|
||||
*
|
||||
* @param string $table The table name (will replace *PREFIX* with the actual prefix)
|
||||
* @param array $input data that should be inserted into the table (column name => value)
|
||||
* @return int number of inserted rows
|
||||
* @since 17.0.0
|
||||
*/
|
||||
public function insertIgnoreConflict($table, $input) : int;
|
||||
|
||||
/**
|
||||
* Insert or update a row value
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue