4 Commits

Author SHA1 Message Date
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
Jon Pacheco
cc7ef143cf Make "done" attribute not null 2020-01-28 15:10:09 +00:00
Jon Pacheco
4f61390f15 Address comments 2020-01-28 08:30:30 +00:00
Jon Pacheco
eece922ac3 Add todos CLI example for postgres 2020-01-27 10:17:58 +00:00