Db\Dialect

Abstract class Phalcon\Db\Dialect

implements Phalcon\Db\DialectInterface

This is the base class to each database dialect. This implements common methods to transform intermediate code into its RDBM related syntax

Methods

public string limit (string $sqlQuery, int $number)

Generates the SQL for LIMIT clause

$sql = $dialect->limit('SELECT * FROM robots', 10);
 echo $sql; // SELECT * FROM robots LIMIT 10

public string forUpdate (string $sqlQuery)

Returns a SQL modified with a FOR UPDATE clause

$sql = $dialect->for