mirror of
https://github.com/knex/knex.git
synced 2025-12-29 07:59:31 +00:00
Don't deprecate toString, it's actually useful
This commit is contained in:
parent
84f0541efa
commit
3711de9be8
@ -28,10 +28,7 @@ var nullOperators = ['is', 'is not'];
|
||||
// Valid values for the `order by` clause generation.
|
||||
var orderBys = ['asc', 'desc'];
|
||||
|
||||
// In the next minor release, this will become:
|
||||
// return '[object Knex:QueryBuilder]';
|
||||
QueryBuilder.prototype.toString = function() {
|
||||
helpers.deprecate('The toString method is deprecated, please use `toQuery` instead.');
|
||||
return this.toQuery();
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user