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