Skip to content

Commit

Permalink
feat: improve base adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Oct 8, 2016
1 parent cbb9e00 commit 13e0391
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/adapters/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 13e0391

Please sign in to comment.