|
wCMF
3.6
|
Public Member Functions | |
| executeScript ($file, $initSection) | |
Static Public Member Functions | |
| static | copyDatabase ($srcName, $destName, $server, $user, $password) |
| static | createDatabase ($name, $server, $user, $password) |
DBUtil provides database helper functions.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 30 of file class.DBUtil.php.
| DBUtil::executeScript | ( | $file, | |
| $initSection | |||
| ) |
Execute a sql script. Execution is done inside a transaction, which is rolled back in case of failure.
| file | The filename of the sql script |
| initSection | The name of the configuration section that defines the database connection |
Definition at line 38 of file class.DBUtil.php.
References Log\debug(), Log\error(), InifileParser\getInstance(), Log\info(), and WCMFException\throwEx().
Here is the call graph for this function:
|
static |
Duplicate a database on the same server (same user). This works only for MySQL databases.
| srcName | The name of the source database |
| destName | The name of the source database |
| server | The name of the database server |
| user | The user name |
| password | The password |
Definition at line 107 of file class.DBUtil.php.
References createDatabase(), Log\debug(), and WCMFException\throwEx().
Referenced by CreateInstanceController\executeKernel().
Here is the call graph for this function:
|
static |
Crate a database on the server. This works only for MySQL databases.
| name | The name of the source database |
| server | The name of the database server |
| user | The user name |
| password | The password |
Definition at line 158 of file class.DBUtil.php.
References WCMFException\throwEx().
Referenced by copyDatabase().
Here is the call graph for this function: