extends abstract class Phalcon\Db\Dialect
implements Phalcon\Db\DialectInterface
Generates database specific SQL for the MySQL RBDMS
Gets the column name in MySQL
Generates SQL to add a column to a table
Generates SQL to modify a column in a table
Generates SQL to delete a column from a table
Generates SQL to add an index to a table
Generates SQL to delete an index from a table
Generates SQL to add the primary key to a table
Generates SQL to delete primary key from a table
Generates SQL to add an index to a table
Generates SQL to delete a foreign key from a table
Generates SQL to add the table creation options
Generates SQL to create a table in MySQL
Generates SQL to drop a table
Generates SQL to create a view
Generates SQL to drop a view
Generates SQL checking for the existence of a schema.table
echo $dialect->tableExists("posts", "blog"); echo $dialect->tableExists("posts");
Generates SQL checking for the existence of a schema.view
Generates SQL describing a table
<?php print_r($dialect->describeColumns("posts")) ?>
List all tables on database
<?php print_r($dialect->listTables("blog")) ?>
Generates the SQL to list all views of a schema or user
Generates SQL to query indexes on a table
Generates SQL to query foreign keys on a table
Generates the SQL to describe the table creation options
Generates the SQL for LIMIT clause
$sql = $dialect->limit('SELECT * FROM robots', 10); echo $sql; // SELECT * FROM robots LIMIT 10
Returns a SQL modified with a FOR UPDATE clause
$sql = $dialect->forUpdate('SELECT * FROM robots'); echo $sql; // SELECT * FROM robots FOR UPDATE
Returns a SQL modified with a LOCK IN SHARE MODE clause
$sql = $dialect->sharedLock('SELECT * FROM robots'); echo $sql; // SELECT * FROM robots LOCK IN SHARE MODE
Gets a list of columns with escaped identifiers
echo $dialect->getColumnList(array('column1', 'column'));
Transforms an intermediate representation for a expression into a database system valid expression
Transform an intermediate representation for a schema/table into a database system valid expression
Builds a SELECT statement
Checks whether the platform supports savepoints
Checks whether the platform supports releasing savepoints.
Generate SQL to create a new savepoint
Generate SQL to release a savepoint
Generate SQL to rollback a savepoint
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Db_Dialect_Mysql.html