Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba40d89

Browse files
committed
Add noWait method
1 parent 88ff230 commit ba40d89

File tree

5 files changed

+32
-1
lines changed

5 files changed

+32
-1
lines changed

doc/api/query-builder/find-methods.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,26 @@ See [knex documentation](http://knexjs.org/#Builder-forShare)
213213
| ----------------------------------- | ---------------------------------- |
214214
| [QueryBuilder](/api/query-builder/) | `this` query builder for chaining. |
215215

216+
## skipLocked()
217+
218+
See [knex documentation](http://knexjs.org/#Builder-skipLocked)
219+
220+
##### Return value
221+
222+
| Type | Description |
223+
| ----------------------------------- | ---------------------------------- |
224+
| [QueryBuilder](/api/query-builder/) | `this` query builder for chaining. |
225+
226+
## noWait()
227+
228+
See [knex documentation](http://knexjs.org/#Builder-noWait)
229+
230+
##### Return value
231+
232+
| Type | Description |
233+
| ----------------------------------- | ---------------------------------- |
234+
| [QueryBuilder](/api/query-builder/) | `this` query builder for chaining. |
235+
216236
## as()
217237

218238
See [knex documentation](http://knexjs.org/#Builder-as)

doc/release-notes/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.2.9
4+
5+
### What's new
6+
7+
- Add `noWait` query builder method.
8+
39
## 2.2.8
410

511
### What's new

lib/queryBuilder/QueryBuilderBase.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ class QueryBuilderBase extends QueryBuilderOperationSupport {
8181
return this.addOperation(new KnexOperation('skipLocked'), args);
8282
}
8383

84+
noWait(...args) {
85+
return this.addOperation(new KnexOperation('noWait'), args);
86+
}
87+
8488
as(...args) {
8589
return this.addOperation(new KnexOperation('as'), args);
8690
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "objection",
3-
"version": "2.2.8",
3+
"version": "2.2.9",
44
"description": "An SQL-friendly ORM for Node.js",
55
"main": "lib/objection.js",
66
"license": "MIT",

typings/objection/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ declare namespace Objection {
10501050
forUpdate: IdentityMethod<this>;
10511051
forShare: IdentityMethod<this>;
10521052
skipLocked: IdentityMethod<this>;
1053+
noWait: IdentityMethod<this>;
10531054
skipUndefined: IdentityMethod<this>;
10541055
debug: IdentityMethod<this>;
10551056
alias: OneArgMethod<string, this>;

0 commit comments

Comments
 (0)