You are here

public function DataHandler::truncate in Data 6

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

Empty data table.

File

includes/DataHandler.inc, line 174
Definition of DataHandler class.

Class

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

Code

public function truncate() {
  db_query('TRUNCATE TABLE {' . db_escape_table($this->table) . '}');
}