Skip to content
Prev Previous commit
Next Next commit
Replace unit test with endtoend test for DuckDB
Changes:
- Remove unit test from internal/engine/duckdb/duckdb_test.go
- Generate expected output for examples/duckdb/ (endtoend test will use this)
- Update sqlc.yaml to work without analyzer (catalog-based mode)
- Add generated Go code (db.go, models.go, query.sql.go)

The DuckDB example will now be tested automatically by TestExamples
in internal/endtoend/endtoend_test.go when running with --tags=examples.

Note: Analyzer disabled for now as database/sql can't execute parameterized
queries without values. Catalog-based type inference works correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
  • Loading branch information
claude committed Oct 29, 2025
commit e1bef7e79dd9901554df131ee5566c32e84b3c00
31 changes: 31 additions & 0 deletions examples/duckdb/db/db.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions examples/duckdb/db/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

161 changes: 161 additions & 0 deletions examples/duckdb/db/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions examples/duckdb/sqlc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ sql:
- "schema.sql"
queries:
- "query.sql"
database:
managed: false
uri: ":memory:"
analyzer:
database: true
gen:
go:
package: "db"
Expand Down
36 changes: 0 additions & 36 deletions internal/engine/duckdb/duckdb_test.go

This file was deleted.