Skip to content

Commit

Permalink
remove redundant clearWhere comment
Browse files Browse the repository at this point in the history
  • Loading branch information
garymathews committed Jan 12, 2024
1 parent 9e50ba8 commit 8469a23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions src/query-builder/select-query-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1282,24 +1282,6 @@ export interface SelectQueryBuilder<DB, TB extends keyof DB, O>
*/
clearSelect(): SelectQueryBuilder<DB, TB, {}>

/**
* 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<DB, TB, O>

/**
Expand Down
18 changes: 0 additions & 18 deletions src/query-builder/update-query-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,24 +123,6 @@ export class UpdateQueryBuilder<DB, UT extends keyof DB, TB extends keyof DB, O>
})
}

/**
* 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<DB, UT, TB, O> {
return new UpdateQueryBuilder({
...this.#props,
Expand Down

0 comments on commit 8469a23

Please sign in to comment.