mirror of https://github.com/rwf2/Rocket.git
bc8c5b9ee2
The connection guard type generated by `#[database]` no longer implements `Deref` and `DerefMut`. Instead, it provides an `async fn run()` that gives access to the underlying connection on a closure run through `spawn_blocking()`. Additionally moves most of the implementation of `#[database]` out of generated code and into library code for better type-checking. |
||
---|---|---|
.. | ||
db | ||
migrations | ||
src | ||
static | ||
Cargo.toml | ||
README.md | ||
Rocket.toml |
README.md
Rocket Todo Example
This example makes use of a SQLite database via diesel
to store todo tasks. As
a result, you'll need to have sqlite3
and its headers installed:
- OS X:
brew install sqlite
- Debian/Ubuntu:
apt-get install libsqlite3-dev
- Arch:
pacman -S sqlite