Property | Type | Description | |
---|---|---|---|
$_charset | |||
$_collate | |||
$_engine | Driver-Specific settings | ||
$_fieldTypeMap | @todo Have to improve this to allow custom types, callbacks, and validation | ||
$format_date | Format for date columns, formatted for PHP's date() function | ||
$format_datetime | |||
$format_time |
Method | Description | |
---|---|---|
characterSet ( $charset, $collate = 'utf8_unicode_ci' ) | Set character set and MySQL collate string | |
dsn ( ) : string | Get DSN string for PDO to connect with | |
engine ( $engine = null ) | Set database engine (InnoDB, MyISAM, etc) | |
migrateSyntaxFieldCreate ( string $fieldName, array $fieldInfo ) : string | Syntax for each column in CREATE TABLE command | |
migrateSyntaxFieldUpdate ( string $fieldName, array $fieldInfo, $add = false ) : string | Syntax for each column in CREATE TABLE command | |
migrateSyntaxTableCreate ( string $table, array $formattedFields, array $columnsSyntax ) : string | Syntax for CREATE TABLE with given fields and column syntax | |
migrateSyntaxTableUpdate ( string $table, array $formattedFields, array $columnsSyntax ) : string | Syntax for ALTER TABLE with given fields and column syntax |
Method | Description | |
---|---|---|
getColumnsForTable ( String $table, $source ) : Array | Get columns for current table |
public characterSet ( $charset, $collate = 'utf8_unicode_ci' ) |
protected getColumnsForTable ( String $table, $source ) : Array | ||
$table | String | Table name |
return | Array |
public migrateSyntaxTableCreate ( string $table, array $formattedFields, array $columnsSyntax ) : string | ||
$table | string | Table name |
$formattedFields | array | Array of fields with all settings |
$columnsSyntax | array | Array of SQL syntax of columns produced by 'migrateSyntaxFieldCreate' function |
return | string | SQL syntax |
public migrateSyntaxTableUpdate ( string $table, array $formattedFields, array $columnsSyntax ) : string | ||
$table | string | Table name |
$formattedFields | array | Array of fields with all settings |
$columnsSyntax | array | Array of SQL syntax of columns produced by 'migrateSyntaxFieldUpdate' function |
return | string | SQL syntax |
protected $_fieldTypeMap |
protected $format_date |