For engineers whose real join logic and business filters live in saved SQL.
Updated
Your saved SQL shows how tables are really joined and filtered. Pass SQL files or a folder next to a database source, and the CLI analyses the queries for referenced tables, columns, join patterns and named parameters, so agents learn from how your team already queries.
Name the database first, then the SQL folder or files.
npx -y @brainbox-labs/cli@latest ingest postgres://user:pass@host/mydb ./sql/A schema says which columns exist; saved queries say how your team joins and filters them. Together they make join keys and common filters visible to the agent.
| Command | Use |
|---|---|
| ingest postgres://… ./sql/ | One step: database and a folder of queries |
| meta ingest db <url> --sql ./sql/ | Stage a folder of query files |
| meta ingest db <url> --sql-file q.sql | Stage one query file |