From 230859a5ce7741322fe008cb9fc162ca5f6d685a Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 22 Aug 2023 08:46:30 +0700 Subject: [PATCH] Remove methods with `NotSupportedException` --- src/QueryBuilder/AbstractDMLQueryBuilder.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/QueryBuilder/AbstractDMLQueryBuilder.php b/src/QueryBuilder/AbstractDMLQueryBuilder.php index 62016aabe..da61ffd07 100644 --- a/src/QueryBuilder/AbstractDMLQueryBuilder.php +++ b/src/QueryBuilder/AbstractDMLQueryBuilder.php @@ -109,16 +109,6 @@ public function insert(string $table, QueryInterface|array $columns, array &$par . (!empty($placeholders) ? ' VALUES (' . implode(', ', $placeholders) . ')' : ' ' . $values); } - public function insertWithReturningPks(string $table, QueryInterface|array $columns, array &$params = []): string - { - throw new NotSupportedException(__METHOD__ . '() is not supported by this DBMS.'); - } - - public function resetSequence(string $table, int|string|null $value = null): string - { - throw new NotSupportedException(__METHOD__ . '() is not supported by this DBMS.'); - } - public function update(string $table, array $columns, array|string $condition, array &$params = []): string { [$lines, $params] = $this->prepareUpdateSets($table, $columns, $params); @@ -129,15 +119,6 @@ public function update(string $table, array $columns, array|string $condition, a return $where === '' ? $sql : $sql . ' ' . $where; } - public function upsert( - string $table, - QueryInterface|array $insertColumns, - bool|array $updateColumns, - array &$params - ): string { - throw new NotSupportedException(__METHOD__ . ' is not supported by this DBMS.'); - } - /** * Prepare select-subQuery and field names for `INSERT INTO ... SELECT` SQL statement. *