background-jobs/scripts/update-schema.sh
2024-01-09 23:16:35 -06:00

7 lines
206 B
Bash
Executable file

#!/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