You are here

public function Truncate::execute in Drupal driver for SQL Server and SQL Azure 8.2

Same name and namespace in other branches
  1. 8 drivers/lib/Drupal/Driver/Database/sqlsrv/Truncate.php \Drupal\Driver\Database\sqlsrv\Truncate::execute()
  2. 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Truncate.php \Drupal\Driver\Database\sqlsrv\Truncate::execute()

Executes the TRUNCATE query.

Return value

Return value is dependent on the database type.

Overrides Truncate::execute

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Truncate.php, line 15
Definition of Drupal\Driver\Database\sqlsrv\Truncate

Class

Truncate

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function execute() {
  return $this->connection
    ->query((string) $this, [], $this->queryOptions);
}