Open hailiang-wang opened 9 years ago
@lymanlai 不必直接复制,因为wildfire/persistence/database.js 写的很负责,nuwa 目前只需要用其中的monogoose connection export and management parts.
@Samurais “很负责” 估计是 “很复杂”?
@lymanlai Well, just read the damn codes. Maybe you can leave this issue and try to close others. We will migrate this module later. Why this task is bit complicated ? (1) wildfire/persistence/database.js supports CRUD hooks and publish Event. (2) wildfire/persistence/database.js handles reconnecting. (3) wildfire/persistence/database.js will further import testing data.
Description
The default module to manage mongodb connection of nodeclub is not good enough. The piece of code in nodeclub is too ugly, should migrate wildfire/server/database.js into this new project.