feat: add Northwind sample DB setup and fix PostgreSQL schema defaults#3
Merged
feat: add Northwind sample DB setup and fix PostgreSQL schema defaults#3
Conversation
Owner
Adoit
commented
Mar 10, 2026
- Add scripts/setup-northwind.sh to download northwind.sql and spin up postgres via docker-compose-northwind.yml (port 5433)
- Add docker-compose-northwind.yml for the Northwind sample database
- Add docs/testing-with-northwind.md with end-to-end test walkthrough
- Add docs/opencode-northwind-example.png showing OpenCode NL query result
- Add AGENTS.md and opencode.json to guide OpenCode away from codebase scanning and toward uv run oda query for data questions
- Add memory/order-revenue-calculation.md as first memory entry
- Fix cli_schema: tables/describe/sample/profile defaulted to schema 'main' for all dialects; now resolves to 'public' (PostgreSQL), database name (MySQL), or 'main' (SQLite) from _get_inspector()
- Fix data-agent.md.tmpl: replace all bare 'oda' with 'uv run oda' so OpenCode can invoke commands without oda on PATH
- Add IMPORTANT block to template directing agent to query data directly rather than scanning source files
- Add tests for oda tables default schema resolution (SQLite and PG)
- Remove dead default 'main' from _parse_table_arg signature
- gitignore docker/northwind/northwind.sql (downloaded at runtime)
- Add scripts/setup-northwind.sh to download northwind.sql and spin up postgres via docker-compose-northwind.yml (port 5433) - Add docker-compose-northwind.yml for the Northwind sample database - Add docs/testing-with-northwind.md with end-to-end test walkthrough - Add docs/opencode-northwind-example.png showing OpenCode NL query result - Add AGENTS.md and opencode.json to guide OpenCode away from codebase scanning and toward uv run oda query for data questions - Add memory/order-revenue-calculation.md as first memory entry - Fix cli_schema: tables/describe/sample/profile defaulted to schema 'main' for all dialects; now resolves to 'public' (PostgreSQL), database name (MySQL), or 'main' (SQLite) from _get_inspector() - Fix data-agent.md.tmpl: replace all bare 'oda' with 'uv run oda' so OpenCode can invoke commands without oda on PATH - Add IMPORTANT block to template directing agent to query data directly rather than scanning source files - Add tests for oda tables default schema resolution (SQLite and PG) - Remove dead default 'main' from _parse_table_arg signature - gitignore docker/northwind/northwind.sql (downloaded at runtime)
b864fcd to
b7bbeca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.