truncate() public method

Run a truncate statement on the table.
public truncate ( ) : void
return void
Exemplo n.º 1
0
 /**
  * Run a truncate statement on the table.
  */
 public function truncate()
 {
     parent::truncate();
     $this->handler->setBuilder($this)->setValues([])->setSqlOperation('truncate')->invalidateQuery('truncate');
 }
Exemplo n.º 2
0
 /**
  * Run a truncate statement on the table.
  *
  * @return void 
  * @static 
  */
 public static function truncate()
 {
     \Illuminate\Database\Query\Builder::truncate();
 }
Exemplo n.º 3
0
 /**
  * Run a truncate statement on the table.
  */
 public function truncate()
 {
     parent::truncate();
     $this->handler->setBuilder($this)->invalidateQuery(Reflector::QUERY_TYPE_TRUNCATE);
 }