ZenMagick 0.9.8


org.zenmagick.store.utils.ZMDbUtils
\store\utils\ZMDbUtils.php at line 34

Class ZMDbUtils

ZMDbUtils

public class ZMDbUtils

SQL/database utils.

Author:
DerManoMann
Version:
$Id: ZMDbUtils.php 2694 2009-12-03 22:32:18Z dermanomann $

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.

Method Detail

\store\utils\ZMDbUtils.php at line 44

executePatch

public static boolean executePatch(string sql, mixed messages, mixed 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.

\store\utils\ZMDbUtils.php at line 73

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.8