Add text-to-sql module: schema prompt through a restricted role, JSqlParser guard, read-only role with column grants and timeout, row cap, execution-based evaluation on a real PostgreSQL
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JXVi2GMQ7bR5EmbUFdDj7N
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Starts PostgreSQL 16 on :5451 if needed (apt: postgresql-16, no Docker), then regenerates output/ from the test suite.
|
||||
# No API key, no network. Needs to run as root (or be able to `su postgres`) for the database server.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
scripts/pg-up.sh
|
||||
rm -rf target
|
||||
mvn -q -B test 2>&1 | grep -E "Tests run:|BUILD|FAIL" || true
|
||||
ls output
|
||||
Reference in New Issue
Block a user