ZenMagick 0.9.10


zenmagick.store.shared.utils\ZMDbUtils
utils\ZMDbUtils.php at line 33

Class ZMDbUtils

ZMDbUtils

public class ZMDbUtils

SQL/database utils.

Author:
DerManoMann

Method Summary
static boolean

executePatch(string sql, mixed messages, bool debug, array Result, boolean Debug)

Execute a SQL patch.

static string

resolveSQLFilename(string filename)

Resolve a given SQL file name.

Method Detail

utils\ZMDbUtils.php at line 43

executePatch

public static boolean executePatch(string sql, mixed messages, bool debug, array Result, boolean Debug)

Execute a SQL patch.

Parameters:
sql - The sql.
Result - message list.
Debug - flag.
Returns:
true for success, false if the execution fails.

utils\ZMDbUtils.php at line 72

resolveSQLFilename

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.

Parameters:
filename - The filename.
Returns:
The most specific filename or null.

ZenMagick 0.9.10