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

22 lines
353 B
PHP

<?php
namespace Driver\SQL\Query;
class Truncate extends Query {
private $tableName;
public function __construct($sql, $name) {
parent::__construct($sql);
$this->tableName = $name;
}
public function execute() {
return $this->sql->executeTruncate($this);
}
public function getTableName() { return $this->tableName; }
};
?>