Class Helpers
Database helpers.
- Nette\Database\Helpers uses Nette\StaticClass
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
string
|
|
public static
integer
|
#
loadFromFile(
Import SQL dump from file - extremely fast. |
public static
|
|
public static
array
|
|
public static
string
|
__callStatic(),
__construct()
|
public static
integer
|
$maxLength
maximum SQL length |
# 100 |
public static
array
|
$typePatterns
|
# [
'^_' => IStructure::FIELD_TEXT, // PostgreSQL arrays
'(TINY|SMALL|SHORT|MEDIUM|BIG|LONG)(INT)?|INT(EGER|\d+| IDENTITY)?|(SMALL|BIG|)SERIAL\d*|COUNTER|YEAR|BYTE|LONGLONG|UNSIGNED BIG INT' => IStructure::FIELD_INTEGER,
'(NEW)?DEC(IMAL)?(\(.*)?|NUMERIC|REAL|DOUBLE( PRECISION)?|FLOAT\d*|(SMALL)?MONEY|CURRENCY|NUMBER' => IStructure::FIELD_FLOAT,
'BOOL(EAN)?' => IStructure::FIELD_BOOL,
'TIME' => IStructure::FIELD_TIME,
'DATE' => IStructure::FIELD_DATE,
'(SMALL)?DATETIME(OFFSET)?\d*|TIME(STAMP.*)?' => IStructure::FIELD_DATETIME,
'BYTEA|(TINY|MEDIUM|LONG|)BLOB|(LONG )?(VAR)?BINARY|IMAGE' => IStructure::FIELD_BINARY,
] |