From 6c18aea5436998c9c0870d52a55eddd35357f2fc Mon Sep 17 00:00:00 2001 From: Onur Kaya Date: Wed, 3 May 2017 21:37:34 +0300 Subject: [PATCH] Update BasicDB.php --- src/BasicDB.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/BasicDB.php b/src/BasicDB.php index 99c7f9c..0832671 100644 --- a/src/BasicDB.php +++ b/src/BasicDB.php @@ -324,6 +324,19 @@ public function insert($tableName) $this->sql = 'INSERT INTO ' . $tableName; return $this; } + + /** + * Used for insert operation + * + * @param + * $tableName + * @return $this + */ + public function insertIgnore($tableName) + { + $this->sql = 'INSERT IGNORE INTO ' . $tableName; + return $this; + } /** * Used for setting data at insert operation.