From 51c07033e134e8dfb66a88490875db0047dc192a Mon Sep 17 00:00:00 2001 From: Jagepard Date: Mon, 3 Aug 2026 14:36:39 +0300 Subject: [PATCH] feat(qb): add insert, delete and select methods --- src/QB.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/QB.php b/src/QB.php index 75232b8..aabb59f 100755 --- a/src/QB.php +++ b/src/QB.php @@ -49,6 +49,24 @@ public function select(string $fields = '*'): self return $this; } + public function delete(string $table): self + { + $this->query .= "DELETE FROM {$table} "; + return $this; + } + + public function insert(string $table, string $columns): self + { + $this->query .= "INSERT INTO {$table} ({$columns}) "; + return $this; + } + + public function values(string $placeholders): self + { + $this->query .= "VALUES ({$placeholders})"; + return $this; + } + public function groupConcat(string $fieldName, string $alias, ?string $orderBy = null): self { $this->query .= $this->driver->groupConcat($fieldName, $alias, $orderBy);