Permalink
Browse files

feat: improve base adapter

  • Loading branch information...
XadillaX committed Oct 8, 2016
1 parent cbb9e00 commit 13e0391d9dcb8d847067601b373098db418aaf22
Showing with 24 additions and 0 deletions.
  1. +24 −0 lib/adapters/base.js
@@ -44,6 +44,30 @@ class Adapter extends EventEmitter {
});
}

count(query, callback) {
process.nextTick(function() {
callback(new Error("this adapter's count function is not implemented yet."));
});
}

updateByQuery(query, callback) {
process.nextTick(function() {
callback(new Error("this adapter's updateByQuery function is not implemented yet."));
});
}

deleteByQuery(query, callback) {
process.nextTick(function() {
callback(new Error("this adapter's deleteByQuery function is not implemented yet."));
});
}

insert(model, data, callback) {
process.nextTick(function() {
callback(new Error("this adapter's insert function is not implemented yet."));
});
}

getDBName() {
return "";
}

0 comments on commit 13e0391

Please sign in to comment.