/diesel-cli

Docker images for the Diesel CLI

Primary LanguageDockerfileMIT LicenseMIT

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