├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── migrations ├── .gitkeep └── 2018-03-17-180012_heroes │ ├── down.sql │ └── up.sql └── src ├── db.rs ├── hero.rs ├── main.rs └── schema.rs /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | /target/ 3 | **/*.rs.bk 4 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/README.md -------------------------------------------------------------------------------- /migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/2018-03-17-180012_heroes/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE heroes; -------------------------------------------------------------------------------- /migrations/2018-03-17-180012_heroes/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/migrations/2018-03-17-180012_heroes/up.sql -------------------------------------------------------------------------------- /src/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/src/db.rs -------------------------------------------------------------------------------- /src/hero.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/src/hero.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sean3z/rocket-diesel-rest-api-example/HEAD/src/schema.rs --------------------------------------------------------------------------------