Created
November 9, 2015 17:03
-
-
Save Siron/a36d0d17065b91eb4f91 to your computer and use it in GitHub Desktop.
Generic DB functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Repository = function(model) { | |
}; | |
Repository.prototype.get = function(id) { | |
}; | |
Repository.prototype.find = function(query) { | |
}; | |
Repository.prototype.list = function(query, options) { | |
}; | |
Repository.prototype.count = function(query) { | |
}; | |
Repository.prototype.create = function(data) { | |
}; | |
Repository.prototype.update = function(id, data) { | |
}; | |
Repository.prototype.delete = function(id, data) { | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment