瀏覽代碼

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

ahwelp 6 年之前
父節點
當前提交
d87d913c29
共有 1 個文件被更改,包括 15 次插入1 次删除
  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
      *