1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-22 20:52:27 +00:00

works on my machineTM

This commit is contained in:
Dominic 2020-05-16 13:59:47 +02:00
parent 20818b0f95
commit 94abc75268
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -176,10 +176,10 @@ you'll need to borrow the connection from the [`State`] yourself and return a bo
A simple non-async example could look like this:
```rust,no_run
# #[cfg(feature = "database")]
# mod database_feature_enabled {
# #[macro_use] extern crate diesel;
# #[macro_use] extern crate gotham_restful_derive;
# #[cfg(feature = "database")]
# mod database_feature_enabled {
# use diesel::{table, PgConnection, QueryResult, RunQueryDsl};
# use gotham::{router::builder::*, pipeline::{new_pipeline, single::single_pipeline}, state::State};
# use gotham_middleware_diesel::DieselMiddleware;