diff --git a/src/ExtendedMySql.php b/src/ExtendedMySql.php
index <HASH>..<HASH> 100644
--- a/src/ExtendedMySql.php
+++ b/src/ExtendedMySql.php
@@ -3,6 +3,28 @@
 namespace Codeception\Lib\Driver;
 
 
-class ExtendedMySql extends  MySql{
+class ExtendedMySql extends MySql
+{
 
-} 
\ No newline at end of file
+    public function insertOrUpdate($tableName, array &$data)
+    {
+        $columns = array_map(
+            array($this, 'getQuotedName'),
+            array_keys($data)
+        );
+
+        $updateAssignments = array();
+        foreach ($data as $key => $value) {
+            $updateAssignments[] = sprintf('%s=%s', $key, $value);
+        }
+        $updateAssignments = implode(', ', $updateAssignments);
+
+        $query = sprintf(
+            "INSERT INTO %s (%s) VALUES (%s) ON DUPLICATE KEY UPDATE %s",
+            $this->getQuotedName($tableName),
+            implode(', ', $columns),
+            implode(', ', array_fill(0, count($data), '?')),
+            $updateAssignments
+        );
+    }
+}
\ No newline at end of file
added the insertOrUpdate method to the ExtendedMySql class