jooq: jOOQ 3.21.9 on Spring Boot 4.2.0 - codegen from Flyway migrations, typed queries, MULTISET, transactions, Testcontainers, fourteen real transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
This commit is contained in:
Ankur Mhatre
2026-11-29 02:25:52 +05:30
co-authored by Claude Sonnet 5.5
parent 8d8c28e2e5
commit 3f061c5e5d
57 changed files with 3319 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# What happens when someone adds a migration but forgets to regenerate: run the drift test on a
# throwaway copy that has an extra migration V3.
set -uo pipefail
HERE="$(cd "$(dirname "$0")/.." && pwd)"
OUT="$HERE/output/11-drift-detected.txt"
WORK="$(mktemp -d)"
mkdir -p "$WORK/m" && cp -r "$HERE/pom.xml" "$HERE/src" "$WORK/m/"
cd "$WORK/m"
cat > src/main/resources/db/migration/V3__book_subtitle.sql <<'SQL'
ALTER TABLE book ADD COLUMN subtitle TEXT;
SQL
{
echo "added src/main/resources/db/migration/V3__book_subtitle.sql, did NOT regenerate"
mvn -B -q test -Dtest=CodegenDriftTest 2>&1 | grep -E 'Tests run:|AssertionFailedError|generated code is stale' | head -5 | cut -c1-400
} > "$OUT"
cd "$HERE"; rm -rf "$WORK"
cat "$OUT"