Commit 58662dcd by Konstantin Käfer

don't support old API

parent d9d87db7
...@@ -45,13 +45,3 @@ Database.prototype.each = function(sql) { ...@@ -45,13 +45,3 @@ Database.prototype.each = function(sql) {
statement.each.apply(statement, Array.prototype.slice.call(arguments, 1)).finalize(); statement.each.apply(statement, Array.prototype.slice.call(arguments, 1)).finalize();
return this; return this;
} }
Database.prototype.execute = function() {
console.warn('Database#execute() is deprecated. Use Database#all() instead.');
return this.all.apply(this, arguments);
};
Database.prototype.query = function() {
console.warn('Database#query() is deprecated. Use Database#each() instead.');
return this.each.apply(this, arguments);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment