background-jobs/scripts/update-schema.sh

8 lines
206 B
Bash
Raw Permalink Normal View History

2024-01-10 05:16:35 +00:00
#!/usr/bin/env bash
diesel \
--database-url 'postgres://postgres:postgres@localhost:5432/db' \
print-schema \
--custom-type-derives "diesel::query_builder::QueryId" \
> jobs-postgres/src/schema.rs