ulmus/src/Query/Truncate.php
Dave Mc Nicoll 139504f8dd - Added the HAVING and TRUNCATE keyword
- Fixed GroupBy which was not implemented yet
- Added a new SQL raw() function
- From statement now accepts subqueries
2020-10-06 11:00:12 -04:00

27 lines
450 B
PHP

<?php
namespace Ulmus\Query;
class Truncate extends Fragment {
const SQL_TOKEN = "TRUNCATE TABLE";
public int $order = -100;
public string $table;
public function set(string $tableName) : self
{
$this->table = $tableName;
return $this;
}
public function render() : string
{
return $this->renderSegments([
static::SQL_TOKEN, $this->table,
]);
}
}