Methods summary
public static
|
|
public
string
|
#
alias( Element $obj )
Always returns the same auto-generated string for a given object
Always returns the same auto-generated string for a given object
Parameters
Returns
string alias
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
Properties summary
protected static
array
|
$expr_formats
|
array(
'add' => '%s + %s',
'sub' => '%s - %s',
'mult' => '%s * %s',
'div' => '%s / %s',
'mod' => 'MOD(%s, %s)',
'abs' => 'ABS(%s)',
'ceil' => 'CEIL(%s)',
'exp' => 'EXP(%s)',
'floor' => 'FLOOR(%s)',
'ln' => 'LN(%s)',
'sqrt' => 'SQRT(%s)',
'extract' => 'EXTRACT(%s FROM %s)',
'interval' => 'INTERVAL %s %s',
'now' => 'NOW()',
'lower' => 'LOWER(%s)',
'upper' => 'UPPER(%s)',
'convert' => 'CONVERT(%s USING %s)',
'translate' => 'TRANSLATE(%s USING %s)',
'concat' => '%s || %s',
'coalesce' => 'COALESCE(%1//, /)',
'equal' => '%s = %s',
'lt' => '%s < %s',
'gt' => '%s > %s',
'ne' => '%s != %s',
'le' => '%s <= %s',
'ge' => '%s >= %s',
'between' => '%s BETWEEN %s AND %s',
'isnull' => '%s IS NULL',
'like' => '%s LIKE %s',
'in' => '%s IN (%2//, /)',
'and' => '(%// AND /)',
'or' => '(%// OR /)',
'not' => 'NOT (%s)') |
|
protected static
array
|
$schema_formats
|
array(
'Bool' => "BOOL",
'Integer' => "INT(%s)",
'TinyInt' => "TINYINT(%s)",
'SmallInt' => "SMALLINT(%s)",
'MediumInt' => "MEDIUMINT(%s)",
'BigInt' => "BIGINT(%s)",
'Float' => "FLOAT(%s)",
'Decimal' => "DECIMAL(%s, %s)",
'Blob' => "BLOB",
'Binary' => "BINARY(%s)",
'String' => "VARCHAR(%s)",
'Char' => "CHAR(%s)",
'Text' => "TEXT(%s)",
'Date' => "DATE",
'Time' => "TIME",
'Datetime' => "DATETIME",
'Timestamp' => "TIMESTAMP",
'Index' => "KEY %s (%3$//, /)",
'UniqueKey' => "UNIQUE KEY %s (%3$//, /)",
'PrimaryKey' => "PRIMARY KEY (%3$//, /)") |
|
protected
array
|
$defaults
|
array(
'alias_columns' => true,
'alias_tables' => false) |
|