jameshiew / diesel-cli

Docker images for the Diesel CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Dockerfile 64.6%Language:Shell 35.4%