We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.18.0
Queries on tables with dashes (and other characters that require quotes) generates invalid Go code.
sqlc generate failed. # package db error generating code: source error: 20:6: expected 'IDENT', found "Foo-Bar"
CREATE TABLE "foo-bar" ( name text NOT NULL );
-- name: ListFooBar :many SELECT * FROM "foo-bar";
{ "version": "1", "packages": [ { "path": "db", "engine": "sqlite", "schema": "query.sql", "queries": "query.sql" } ] }
https://play.sqlc.dev/p/d99fe3b457f038006ef8c8c29b22c60edab178dc9e83e5cddac4408c9cbe696c
macOS
SQLite
Go
The text was updated successfully, but these errors were encountered:
Duplicate of #1817
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Version
v1.18.0
What happened?
Queries on tables with dashes (and other characters that require quotes) generates invalid Go code.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/d99fe3b457f038006ef8c8c29b22c60edab178dc9e83e5cddac4408c9cbe696c
What operating system are you using?
macOS
What database engines are you using?
SQLite
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: