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. |
||
---|---|---|
.. | ||
static | ||
templates | ||
compress_responder.rs.disabled | ||
compression_fairing.rs.disabled | ||
databases.rs | ||
helmet.rs | ||
static_files.rs | ||
templates.rs |