sqlc
sqlc copied to clipboard
Generate type-safe code from SQL
### Version 1.27.0 ### What happened? Problem: ```sql -- schema.sql CREATE TABLE `users` ( `name` text ); ``` This doesn't work (): ```sql -- queries.sql -- name: ListUsers :many SELECT...
### What do you want to change? Hi Thanks for this amazing library. Will you please consider adding MySQL support for `emit_pointers_for_null_types`? ### What database engines need to be changed?...
Add a new end-to-end test structure with separate packages for each SQL engine (PostgreSQL, MySQL, SQLite). Each engine has: - Its own test runner (endtoend_test.go) - Coverage verification test (coverage_test.go)...
### What do you want to change? I am one of the developers of the C# plugin. We published our plugin in the community and received a lot of feedback...
### What do you want to change? I did notice we don't have documentation for tuples, so I think its not implemented yet. MySQL documentation reference: https://dev.mysql.com/doc/refman/8.4/en/row-constructor-optimization.html ```sql SELECT code,...
## fix(compiler): robustly strip psql meta commands without breaking SQL Replace naive line-based removal with a single-pass state machine that correctly distinguishes psql meta-commands from backslashes in SQL code, literals,...
### Version 1.30.0 ### What happened? SQLC generates Go code for a non-valid subquery. ### Relevant log output ```shell SQL logic error: no such column: locations.project_id (1) ``` ### Database...
### Version 1.30.0 ### What happened? When I run `sqlc generate` in my project, I get this output: ``` # package sqlc sql/schema.sql:1:1: [ddl:1273]Unknown collation: 'utf8mb4_uca1400_ai_ci'" ``` I am unsure...
### Version 1.30.0 ### What happened? I tried to `sqlc generate` based on an otherwise working sql select. ### Relevant log output ```shell relation "pg_stat_activity" does not exist ``` ###...
### Version 1.30.0 ### What happened? starting postgres 17.6 schema.sql contains at the beginning of the file. thus sqlc fails when encounters **\** -- PostgreSQL database dump **\restrict cRe26dxyO3We839cJ3COtDCpNvQBSEG33rrGwRIgsYLdkpPRu7RhWGxQhG36png** --...