- Fixed SQLite truncate, added AdapterProxy autoloading

This commit is contained in:
Dave Mc Nicoll committed 2025-05-12 15:11:00 +00:00
1 parent 1ec582d1ac
commit 761e0401b0
7 files changed
+105 -6

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?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,
]);
}
}