不要怂,就是干,撸起袖子干!

Commit f0c019ee by Sascha Depold

copy the methods of node-sql

1 parent b51b0d45
Showing with 13 additions and 0 deletions
...@@ -61,6 +61,19 @@ module.exports = (function() { ...@@ -61,6 +61,19 @@ module.exports = (function() {
get: function() { return this.QueryInterface.QueryGenerator } get: function() { return this.QueryInterface.QueryGenerator }
}) })
;(function() {
var instance = sql.define({ name: "dummy", columns: [] })
for (var methodName in instance) {
;(function(methodName) {
DAOFactory.prototype[methodName] = function() {
var dataset = this.dataset()
return dataset[methodName].apply(dataset, arguments)
}
})(methodName)
}
})()
DAOFactory.prototype.init = function(daoFactoryManager) { DAOFactory.prototype.init = function(daoFactoryManager) {
var self = this; var self = this;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!