shio-rs icon indicating copy to clipboard operation
shio-rs copied to clipboard

MySQL Example

Open gx0r opened this issue 8 years ago • 0 comments

I am really liking this framework. Thanks for writing it. I started working on a MySQL example based off the Postgres example, but I'm getting stuck on how to move the db connection pool outside of the handler function into a static or thread local variable:

https://github.com/llambda/shio-rs/commit/73f426acb9a9b3422dba06cc64d5405b9fa52774#diff-b8f3d0d19969c0811b90c7114d80f0b1R43

gx0r avatar Nov 03 '17 14:11 gx0r