1 database.inc public DatabaseConnection::truncate($table, array $options = array())

Prepares and returns a TRUNCATE query object.

Parameters

$options: An array of options on the query.

Return value

TruncateQuery: A new TruncateQuery object.

See also

TruncateQuery

File

core/includes/database/database.inc, line 926
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

public function truncate($table, array $options = array()) {
  $class = $this->getDriverClass('TruncateQuery', array('query.inc'));
  return new $class($this, $table, $options);
}