Pārlūkot izejas kodu

Update 'src/DDLWrapper/Db/Adapter/PdoAdapter.php'

ahwelp 6 gadi atpakaļ
vecāks
revīzija
d87d913c29
1 mainītis faili ar 15 papildinājumiem un 1 dzēšanām
  1. 15 1
      src/DDLWrapper/Db/Adapter/PdoAdapter.php

+ 15 - 1
src/DDLWrapper/Db/Adapter/PdoAdapter.php

@@ -88,7 +88,21 @@ abstract class PdoAdapter implements AdapterInterface
         }
         return $this->connection;
     }
-
+  
+    /**
+     * Gets the table prefix
+     *
+     * @return \PDO
+     */
+    public function getTablePrefix()
+    {
+      	if(isset($this->connection->prefix)){
+        	return $this->connection->prefix;
+        }
+        return '';
+    }
+  
+  
     /**
      * Sets the command start time
      *