文件名称:sequelazy:添加延迟执行回调以进行续集
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-29 13:48:48
JavaScript
#续集 添加查询的延迟执行以通过进行 ##安装 npm install sequelazy ##用法 var sequelazy = require('sequelazy'), // define your sequelize models var models = { Account: require('./account') }; // call function over them sequelazy(models); // now you can execute queries lazily var executeQuery = models.Account.lazy.find({ where: { id: 1} }); // later... executeQuery(function(error, account) { if (error) {
【文件预览】:
sequelazy-master
----.gitignore(535B)
----package.json(671B)
----createLazyFunction.js(407B)
----LICENSE(1KB)
----index.js(158B)
----README.md(1KB)
----test()
--------index.js(882B)