diff --git a/src/query-builder/select-query-builder.ts b/src/query-builder/select-query-builder.ts index 324da6a7c..ee9c248d2 100644 --- a/src/query-builder/select-query-builder.ts +++ b/src/query-builder/select-query-builder.ts @@ -1282,24 +1282,6 @@ export interface SelectQueryBuilder */ clearSelect(): SelectQueryBuilder - /** - * Clears all `where` clauses from the query. - * - * ### Examples - * - * ```ts - * db.selectFrom('person') - * .selectAll() - * .where('first_name', '=', 'James') - * .clearWhere() - * ``` - * - * The generated SQL(PostgreSQL): - * - * ```sql - * select * from "person" - * ``` - */ clearWhere(): SelectQueryBuilder /** diff --git a/src/query-builder/update-query-builder.ts b/src/query-builder/update-query-builder.ts index 789f22804..85c642670 100644 --- a/src/query-builder/update-query-builder.ts +++ b/src/query-builder/update-query-builder.ts @@ -123,24 +123,6 @@ export class UpdateQueryBuilder }) } - /** - * Clears all `where` clauses from the query. - * - * ### Examples - * - * ```ts - * db.updateTable('person') - * .set({ age: 39 }) - * .where('name', '=', 'John') - * .clearWhere() - * ``` - * - * The generated SQL(PostgreSQL): - * - * ```sql - * update "person" set "age" = 39 - * ``` - */ clearWhere(): UpdateQueryBuilder { return new UpdateQueryBuilder({ ...this.#props,