Open daimajia opened 10 years ago
like https://github.com/dresende/node-orm2#express, you can make db as models property, such as, models.db = db, then, you can use req.models.db.driver.execQuery(....) to do raw query
I have a similar question but my goal is trying to find a stop gap of old code that doesn't use orm and new code in the same project that uses orm so that they share the same connection:
Anyone have ideas?
https://github.com/dresende/node-orm2#raw-queries It seems there is only one way... but how to do with express