Inheritance diagram for DboMysqlBase:

Public Member Functions | |
| _alterIndexes ($table, $indexes) | |
| alterSchema ($compare, $table=null) | |
| delete (&$model, $conditions=null) | |
| dropSchema ($schema, $table=null) | |
| index ($model) | |
| insertMulti ($table, $fields, $values) | |
| setEncoding ($enc) | |
| update (&$model, $fields=array(), $values=null, $conditions=null) | |
Public Attributes | |
| $_commands | |
| $_useAlias = true | |
| $columns | |
| $description = "MySQL DBO Base Driver" | |
| $endQuote = "`" | |
| $startQuote = "`" | |
Definition at line 33 of file dbo_mysql.php.
| DboMysqlBase::_alterIndexes | ( | $ | table, | |
| $ | indexes | |||
| ) |
Generate MySQL index alteration statements for a table.
| string | $table Table to alter indexes for | |
| array | $new Indexes to add and drop |
Definition at line 283 of file dbo_mysql.php.
References $out, DataSource::column(), and DboSource::name().
Referenced by alterSchema().
| DboMysqlBase::alterSchema | ( | $ | compare, | |
| $ | table = null | |||
| ) |
Generate a MySQL Alter Table syntax for the given Schema comparison
| array | $compare Result of a CakeSchema::compare() |
Reimplemented from DboSource.
Definition at line 207 of file dbo_mysql.php.
References $out, _alterIndexes(), DboSource::buildColumn(), DboSource::fullTableName(), and DboSource::name().
| DboMysqlBase::delete | ( | &$ | model, | |
| $ | conditions = null | |||
| ) |
Generates and executes an SQL DELETE statement for given id/conditions on given model.
| Model | $model | |
| mixed | $conditions |
Reimplemented from DboSource.
Definition at line 138 of file dbo_mysql.php.
References DboSource::$alias, DboSource::_getJoins(), DboSource::conditions(), DboSource::defaultConditions(), delete(), DboSource::execute(), DboSource::fullTableName(), DboSource::name(), and DboSource::renderStatement().
| DboMysqlBase::dropSchema | ( | $ | schema, | |
| $ | table = null | |||
| ) |
Generate a MySQL "drop table" statement for the given Schema object
| object | $schema An instance of a subclass of CakeSchema | |
| string | $table Optional. If specified only the table name given will be generated. Otherwise, all tables defined in the schema are generated. |
Reimplemented from DboSource.
Definition at line 263 of file dbo_mysql.php.
References $columns, $out, __(), and DboSource::fullTableName().
| DboMysqlBase::index | ( | $ | model | ) |
Returns an array of the indexes in given datasource name.
| string | $model Name of model to inspect |
Reimplemented from DboSource.
Definition at line 175 of file dbo_mysql.php.
References DboSource::$index, DataSource::column(), Set::extract(), DboSource::fullTableName(), and DboSource::query().
Referenced by DboMysqli::describe(), and DboMysql::describe().
| DboMysqlBase::insertMulti | ( | $ | table, | |
| $ | fields, | |||
| $ | values | |||
| ) |
Inserts multiple values into a table
| string | $table | |
| string | $fields | |
| array | $values |
Reimplemented from DboSource.
Definition at line 324 of file dbo_mysql.php.
References DboSource::fullTableName(), DboSource::name(), and DboSource::query().
| DboMysqlBase::setEncoding | ( | $ | enc | ) |
Sets the database encoding
| string | $enc Database encoding |
Definition at line 166 of file dbo_mysql.php.
Referenced by DboMysqli::connect(), and DboMysql::connect().
| DboMysqlBase::update | ( | &$ | model, | |
| $ | fields = array(), |
|||
| $ | values = null, |
|||
| $ | conditions = null | |||
| ) |
Generates and executes an SQL UPDATE statement for given model, fields, and values.
| Model | $model | |
| array | $fields | |
| array | $values | |
| mixed | $conditions |
Reimplemented from DboSource.
Definition at line 97 of file dbo_mysql.php.
References DboSource::$alias, DboSource::_getJoins(), DboSource::_prepareUpdateFields(), DboSource::conditions(), DboSource::defaultConditions(), DboSource::execute(), DboSource::fields(), DboSource::fullTableName(), DboSource::name(), and DboSource::renderStatement().
| DboMysqlBase::$_commands |
| DboMysqlBase::$_useAlias = true |
Definition at line 58 of file dbo_mysql.php.
| DboMysqlBase::$columns |
Initial value:
array(
'primary_key' => array('name' => 'NOT NULL AUTO_INCREMENT'),
'string' => array('name' => 'varchar', 'limit' => '255'),
'text' => array('name' => 'text'),
'integer' => array('name' => 'int', 'limit' => '11', 'formatter' => 'intval'),
'float' => array('name' => 'float', 'formatter' => 'floatval'),
'datetime' => array('name' => 'datetime', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
'timestamp' => array('name' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
'time' => array('name' => 'time', 'format' => 'H:i:s', 'formatter' => 'date'),
'date' => array('name' => 'date', 'format' => 'Y-m-d', 'formatter' => 'date'),
'binary' => array('name' => 'blob'),
'boolean' => array('name' => 'tinyint', 'limit' => '1')
)
Definition at line 75 of file dbo_mysql.php.
Referenced by dropSchema().
| DboMysqlBase::$description = "MySQL DBO Base Driver" |
Reimplemented from DboSource.
Reimplemented in DboMysql, and DboMysqli.
Definition at line 39 of file dbo_mysql.php.
| DboMysqlBase::$endQuote = "`" |
| DboMysqlBase::$startQuote = "`" |
1.4.7