Class Helpers
Database helpers.
public static
|
#
dumpResult(
Displays complete result set as HTML table for debug purposes. |
public static
string
|
#
dumpSql( string $sql, array $params = NULL,
Returns syntax highlighted SQL command. |
public static
array
|
|
public static
integer
|
#
loadFromFile(
Import SQL dump from file - extremely fast. |
public static
|
|
public static
array
|
public static
integer
|
$maxLength
maximum SQL length |
# 100 |
public static
array
|
$typePatterns
|
# array(
'^_' => IStructure::FIELD_TEXT, // PostgreSQL arrays
'BYTEA|BLOB|BIN' => IStructure::FIELD_BINARY,
'TEXT|CHAR|POINT|INTERVAL' => IStructure::FIELD_TEXT,
'YEAR|BYTE|COUNTER|SERIAL|INT|LONG|SHORT|^TINY$' => IStructure::FIELD_INTEGER,
'CURRENCY|REAL|MONEY|FLOAT|DOUBLE|DECIMAL|NUMERIC|NUMBER' => IStructure::FIELD_FLOAT,
'^TIME$' => IStructure::FIELD_TIME,
'TIME' => IStructure::FIELD_DATETIME, // DATETIME, TIMESTAMP
'DATE(?!RANGE)' => IStructure::FIELD_DATE,
'BOOL' => IStructure::FIELD_BOOL,
) |