Title: sqlc generate should emit a warning when using an unknown sql_package · Issue #3104 · sqlc-dev/sqlc · GitHub
Open Graph Title: sqlc generate should emit a warning when using an unknown sql_package · Issue #3104 · sqlc-dev/sqlc
X Title: sqlc generate should emit a warning when using an unknown sql_package · Issue #3104 · sqlc-dev/sqlc
Description: What do you want to change? I had a typo in my sqlc.json file: { "version": "2", "sql": [{ "schema": "schema/schema.sql", "queries": "queries.sql", "engine": "postgresql", "gen": { "go": { "out": "db", "sql_package": "pgx/5" } } }] } Whe...
Open Graph Description: What do you want to change? I had a typo in my sqlc.json file: { "version": "2", "sql": [{ "schema": "schema/schema.sql", "queries": "queries.sql", "engine": "postgresql", "gen": { "go": { "out": "...
X Description: What do you want to change? I had a typo in my sqlc.json file: { "version": "2", "sql": [{ "schema": "schema/schema.sql", "queries": &quo...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3104
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlc generate should emit a warning when using an unknown sql_package","articleBody":"### What do you want to change?\n\nI had a typo in my `sqlc.json` file:\r\n```json\r\n{\r\n \"version\": \"2\",\r\n \"sql\": [{\r\n \"schema\": \"schema/schema.sql\",\r\n \"queries\": \"queries.sql\",\r\n \"engine\": \"postgresql\",\r\n \"gen\": {\r\n \"go\": {\r\n \"out\": \"db\",\r\n \"sql_package\": \"pgx/5\"\r\n }\r\n }\r\n }]\r\n}\r\n```\r\nWhen I ran `sqlc generate` it happily generated code without any warnings.\r\n\r\nI think the dev experience could be improved with a warning message along the lines of:\r\n`sql_package: pgx/5 is unknown. Defaulting to database/sql codegen...`\r\n\n\n### What database engines need to be changed?\n\n_No response_\n\n### What programming language backends need to be changed?\n\nGo","author":{"url":"https://github.com/devonhk","@type":"Person","name":"devonhk"},"datePublished":"2024-01-04T00:26:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3104/sqlc/issues/3104"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c9bf71e2-f420-e935-4f0f-2c299efe1e58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B880:381E5:1B23065:268547C:6A50CCB6 |
| html-safe-nonce | e5d58e6c01e471e4fcdfd18a97ed6c8c4e882ea7b03e19a649159d42032e9ade |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODgwOjM4MUU1OjFCMjMwNjU6MjY4NTQ3Qzo2QTUwQ0NCNiIsInZpc2l0b3JfaWQiOiIyNjU5MTIxOTAyNjcwODM5NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2545fb974655f638eefb4c880ddeca5809ac7dfde2e5a18792f4b2f89a5db1a9 |
| hovercard-subject-tag | issue:2064819081 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/3104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0fd09caa1746e9acb01a57821df4fc9b153ec1bee803da4f6ac57551d095cef4/sqlc-dev/sqlc/issues/3104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0fd09caa1746e9acb01a57821df4fc9b153ec1bee803da4f6ac57551d095cef4/sqlc-dev/sqlc/issues/3104 |
| og:image:alt | What do you want to change? I had a typo in my sqlc.json file: { "version": "2", "sql": [{ "schema": "schema/schema.sql", "queries": "queries.sql", "engine": "postgresql", "gen": { "go": { "out": "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devonhk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width