diff --git a/Backend/Core/Data/InsertQuery.php b/Backend/Core/Data/InsertQuery.php deleted file mode 100644 index 9cd8096..0000000 --- a/Backend/Core/Data/InsertQuery.php +++ /dev/null @@ -1,42 +0,0 @@ -values != null) - $this->queryStr .= ','; - else - $this->values = []; - $placeholder = ":{strtolower($columnName)}"; - $this->queryStr .= " `$columnName`="; - $this->queryStr .= $placeholder; - - $this->values[$placeholder] = $value; - } - - /** - * Executes the query - * - * @param string|null $idName Name of the ID field - * @return int|string Last insert ID or 0 on failure - */ - public function run(?string $idName = null): int|string { - $this->queryStr .= ');'; - return $this->lastInsertId($idName); - } -}