sqlx/examples
Nicholas Connor 745c5c3957
Updated the README example with acquire connection (#99)
* Updated the README example with acquire connection

Initially from reading the docs and examples I tried to use `&mut pool` instead of `&mut conn`. The compiler gave me an error that `Pool<MySql>` didn't implement `Executor`. I had to do a bit of digging and eventually just viewed the source of `Pool` to find `acquire()`, `try_acquire()` etc.

I think this change makes it a bit easier for someone to get started.

* Update README.md to reference initial pool declaration

* Fixed compile issues and added examples of using &mut &pool
2020-01-31 23:30:08 -08:00
..
queries fix macro examples and tests 2020-01-03 19:02:31 -08:00
realworld-postgres Making realworld-postgres example compile 2020-01-26 19:43:39 -05:00
todos-postgres Updated the README example with acquire connection (#99) 2020-01-31 23:30:08 -08:00