示例#1
0
 /**
  * Quotes a database identifier (a column name, table name, etc..) to
  * be used safely in queries without the risk of using reserved words.
  *
  * @param string $identifier The identifier to quote.
  * @return string
  */
 public function quoteIdentifier($identifier)
 {
     return $this->_driver->quoteIdentifier($identifier);
 }
 /**
  * Quotes identifiers in "order by" expression objects
  *
  * @param \Cake\Database\Expression\IdentifierExpression $expression
  * @return void
  */
 protected function _quoteIndetifierExpression(IdentifierExpression $expression)
 {
     $expression->setIdentifier($this->_driver->quoteIdentifier($expression->getIdentifier()));
 }
 /**
  * Generate the SQL to drop a table.
  *
  * @param \Cake\Database\Schema\Table $table Table instance
  * @return array SQL statements to drop a table.
  */
 public function dropTableSql(Table $table)
 {
     $sql = sprintf('DROP TABLE %s', $this->_driver->quoteIdentifier($table->name()));
     return [$sql];
 }