web-base/core/Driver/SQL/Query/Truncate.class.php

19 lines
350 B
PHP
Raw Normal View History

2020-04-02 00:02:51 +02:00
<?php
namespace Driver\SQL\Query;
class Truncate extends Query {
2020-04-03 17:39:58 +02:00
private string $tableName;
2020-04-02 00:02:51 +02:00
public function __construct($sql, $name) {
parent::__construct($sql);
$this->tableName = $name;
}
public function execute() {
return $this->sql->executeTruncate($this);
}
2020-04-03 17:39:58 +02:00
public function getTable() { return $this->tableName; }
}