Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 676 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 676 Bytes

diesel-cli Docker Hub pulls

Docker images containing the Diesel CLI for Postgres.

Generating schema.rs

You can run a print-schema container like below, that will run all migrations against a fresh Postgres database and then print schema.rs to stdout.

e.g. assuming your Diesel migrations are under migrations/ in your current working directory, you can run something like:

docker run \
    --rm \
    -v $(pwd)/migrations:/migrations \
    jameshiew/diesel-cli:2.0.1-print-schema > schema.rs