Method |
Description |
|
__construct ( ) : WPDKDB |
Create an instance of WPDKDB class |
|
addslashes ( string $value = '', boolean $is_like = false ) : mixed |
Better addslashes for SQL queries. |
|
backquote ( string | array $value ) : array | string |
Add backquotes to string or array group. Return a string if input param is a string, otherwise return an array if
the input params is an array. |
|
dumpWithTable ( string $table, string $filename = '' ) : string |
Reads the Database table in $table and creates SQL Statements for recreating structure and data then return the
DUMP SQL. If you set the $filename params then the dump is store on filesystem too. |
|
executeQuery ( string $query ) : boolean | mysqli_result | resource |
Utility to execute a pure query in MySQL or MySQLi extension. |
|
importWithFilename ( string $filename ) : boolean | mysqli_result | resource | WPDKError |
Utility method to import a SQL (pure) file usually an export. |
|
init ( ) : WPDKDB |
Return a singleton instance of WPDKDB class |
|
removeComments ( string $query ) : string |
Return a SQL statement without comments. |
|