29 lines
481 B
PHP
29 lines
481 B
PHP
<?php
|
|
|
|
namespace Ulmus\Query\Sqlite;
|
|
|
|
use Ulmus\Query\Fragment;
|
|
|
|
class Truncate extends Fragment {
|
|
|
|
const SQL_TOKEN = "DELETE FROM";
|
|
|
|
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,
|
|
]);
|
|
}
|
|
}
|