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

Docker images for the Diesel CLI

License

Notifications You must be signed in to change notification settings

jameshiew/diesel-cli

Repository files navigation

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

About

Docker images for the Diesel CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published