Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You're right, stateful dependencies like DB handles need to be passed in manually, and that's a bit of extra legwork you need to do.


Just use a static variable to the DB instance / pool, maybe using singletons, so everyone needing it have access.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: