Truncate::__toString

public Truncate::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Truncate::__toString File core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php, line 14 Class Truncate SQLite implementation of \Drupal\Core\Database\Query\Truncate. Namespace Drupal\Core\Database\Driver\sqlite Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $th

Truncate::__toString

public Truncate::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Query::__toString File core/lib/Drupal/Core/Database/Query/Truncate.php, line 67 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComm

Truncate::__construct

public Truncate::__construct(Connection $connection, $table, array $options = array()) Constructs a Truncate query object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Truncate.php, line 31 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Da

Truncate::execute

public Truncate::execute() Executes the TRUNCATE query. Return value Return value is dependent on the database type. Overrides Truncate::execute File core/lib/Drupal/Core/Database/Driver/pgsql/Truncate.php, line 15 Class Truncate PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate. Namespace Drupal\Core\Database\Driver\pgsql Code public function execute() { $this->connection->addSavepoint(); try { $result = parent::execute(); } catch (\Exception $e) {

Truncate::execute

public Truncate::execute() Executes the TRUNCATE query. Return value Return value is dependent on the database type. Overrides Query::execute File core/lib/Drupal/Core/Database/Query/Truncate.php, line 57 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function execute() { return $this->connection->query((string) $this, array(), $this->queryOptions); }

Truncate::compiled

public Truncate::compiled() File core/lib/Drupal/Core/Database/Query/Truncate.php, line 47 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function compiled() { return $this->condition->compiled(); }

Truncate::compile

public Truncate::compile(Connection $connection, PlaceholderInterface $queryPlaceholder) File core/lib/Drupal/Core/Database/Query/Truncate.php, line 40 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function compile(Connection $connection, PlaceholderInterface $queryPlaceholder) { return $this->condition->compile($connection, $queryPlaceholder); }

Truncate::$table

The table to truncate. Type: string File core/lib/Drupal/Core/Database/Query/Truncate.php, line 19 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code protected $table;

Truncate

PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Truncateclass \Drupal\Core\Database\Driver\pgsql\Truncate File core/lib/Drupal/Core/Database/Driver/pgsql/Truncate.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description Query::$comments protected property An array of comments that can be prepended

Truncate

SQLite implementation of \Drupal\Core\Database\Query\Truncate. SQLite doesn't support TRUNCATE, but a DELETE query with no condition has exactly the effect (it is implemented by DROPing the table). Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Truncateclass \Drupal\Core\Database\Driver\sqlite\Truncate File core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php, line 13 Namespace Drupal\Core\Database\Driver\sqlite