#!/usr/bin/env bash
set -euo pipefail

root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

echo "Generating worker storage code via sqlc..."
(cd "$root/services/worker" && go run github.com/sqlc-dev/sqlc/cmd/sqlc generate)
echo "Generation complete."
