You are here

public function DataHandler::truncate in Data 8

Same name and namespace in other branches
  1. 6 includes/DataHandler.inc \DataHandler::truncate()
  2. 7 includes/DataHandler.inc \DataHandler::truncate()

Empty data table.

File

includes/DataHandler.inc, line 170
Definition of TableFactory class.

Class

DataHandler
Simple access methods to table data. Can be used on any table, not just Data managed tables.

Code

public function truncate() {

  // TODO Please convert this statement to the D7 database API syntax.
  db_query('TRUNCATE TABLE {' . db_escape_table($this->table) . '}');
}