CodeFoodPixels / node-promise-mysql

A wrapper for mysqljs/mysql that wraps function calls with Bluebird promises.
MIT License
338 stars 63 forks source link

Using/Disposer Pattern for the docs #21

Closed wootencl closed 8 years ago

wootencl commented 8 years ago

Simple documentation example of the using/disposing pattern. Took me a moment to figure it out so I figured it might be good to add to the documentation.

CodeFoodPixels commented 8 years ago

Sorry it's taken a few days, but thank you for this! I've never used the using/disposer pattern nor did I know what it was. Today I learned!

wootencl commented 8 years ago

No problem! Somewhat new to it myself but after some research it seems like the best way to maintain a mysql connection pool. Thanks for the excellent extension to node-mysql!