mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
works on my machineTM
This commit is contained in:
parent
20818b0f95
commit
94abc75268
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue