mirror of
https://github.com/knex/knex.git
synced 2026-01-03 10:38:37 +00:00
removing umd, Promise.method on query
This commit is contained in:
parent
c39bdf5a5c
commit
b65bf4f231
@ -28,7 +28,7 @@ var ServerBase = ClientBase.extend({
|
||||
// Execute a query on the specified Builder or QueryBuilder
|
||||
// interface. If a `connection` is specified, use it, otherwise
|
||||
// acquire a connection, and then dispose of it when we're done.
|
||||
query: function(builder) {
|
||||
query: Promise.method(function(builder) {
|
||||
var conn, client = this;
|
||||
var sql = builder.toSql(builder);
|
||||
var bindings = builder.getBindings();
|
||||
@ -76,7 +76,7 @@ var ServerBase = ClientBase.extend({
|
||||
newError.clientError = error;
|
||||
throw newError;
|
||||
});
|
||||
},
|
||||
}),
|
||||
|
||||
// Debug a query.
|
||||
debug: function(sql, bindings, connection, builder) {
|
||||
|
||||
1031
lib/builder.js
1031
lib/builder.js
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user