Merge pull request #24235 from Taggotty/knex_modify

knex: Added modify to QueryInterface
This commit is contained in:
Arthur Ozga 2018-03-16 13:32:48 -07:00 committed by GitHub
commit e56c0fee30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,7 @@ declare namespace Knex {
pluck(column: string): QueryBuilder;
insert(data: any, returning?: string | string[]): QueryBuilder;
modify(callback: QueryCallback, ...args: any[]): QueryBuilder;
update(data: any, returning?: string | string[]): QueryBuilder;
update(columnName: string, value: Value, returning?: string | string[]): QueryBuilder;
returning(column: string | string[]): QueryBuilder;

View File

@ -1030,6 +1030,9 @@ knex('users')
}).unionAll(function(builder) {
let self: Knex.QueryBuilder = this;
self = builder;
}).modify(function(builder) {
let self: Knex.QueryBuilder = this;
self = builder;
});
//