ZMDbUtils
public class ZMDbUtils
| Method Summary | |
|---|---|
| static boolean | executePatch(string sql, mixed messages, mixed debug, array Result, boolean Debug) Execute a SQL patch. |
| private static array | processPatchResults(mixed results, array The) Process SQL patch messages. |
| static string | resolveSQLFilename(string filename) Resolve a given SQL file name. |
public static boolean executePatch(string sql, mixed messages, mixed debug, array Result, boolean Debug)
Execute a SQL patch.
NOTE: This functionallity is only available in the context of the ZenMagick installation or plugins page.
true for success, false if the execution fails.private static array processPatchResults(mixed results, array The)
Process SQL patch messages.
public static string resolveSQLFilename(string filename)
Resolve a given SQL file name.
This will try to find the most specific available file for the configured database type.
Filenames are expected in the format [name]-[driver].sql if driver specific SQL is required. If no
specific file is found, the default [name].sql will is tried. If that is also not found, null
will be returned.
null.
SQL/database utils.