You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add ClickHouse support to sqlc parse (#4267)
* feat: add ClickHouse database engine support
Add ClickHouse support using the github.com/sqlc-dev/doubleclick parser library.
New files in internal/engine/clickhouse/:
- parse.go: Parser implementation using doubleclick
- convert.go: AST converter from doubleclick to sqlc AST
- format.go: ClickHouse-specific SQL formatting
- catalog.go: Catalog initialization
- stdlib.go: Standard library functions
- reserved.go: Reserved keywords
- utils.go: Helper functions
- parse_test.go: Unit tests
Supported SQL operations:
- SELECT with JOINs, subqueries, CTEs, window functions
- INSERT with VALUES and SELECT subquery
- UPDATE and DELETE
- CREATE TABLE, ALTER TABLE, DROP TABLE, TRUNCATE
Co-Authored-By: Claude <noreply@anthropic.com>
* chore: remove test file
Co-Authored-By: Claude <noreply@anthropic.com>
* chore: return empty function set from stdlib
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor: move ClickHouse support to parse command only
Remove ClickHouse from compiler/engine.go and config.go.
Add --dialect clickhouse support to the sqlc parse command.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments