ZMDbUtils
public class ZMDbUtils
| Method Summary | |
|---|---|
| static boolean | executePatch(string sql, mixed messages, mixed debug, array Result, boolean Debug) Execute a SQL patch. |
| 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.
true for success, false if the execution fails.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.