Title: Table "product_metadata" incorrectly generates model name. · Issue #3552 · sqlc-dev/sqlc · GitHub
Open Graph Title: Table "product_metadata" incorrectly generates model name. · Issue #3552 · sqlc-dev/sqlc
X Title: Table "product_metadata" incorrectly generates model name. · Issue #3552 · sqlc-dev/sqlc
Description: Version 1.27.0 What happened? I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected table bonuses => struct name Bonuse table product_metadata => struct ...
Open Graph Description: Version 1.27.0 What happened? I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected table bonuses => struct name ...
X Description: Version 1.27.0 What happened? I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected table bonuses => struct na...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3552
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Table \"product_metadata\" incorrectly generates model name.","articleBody":"### Version\r\n\r\n1.27.0\r\n\r\n### What happened?\r\n\r\nI have 2 tables with name like `bonuses, product_metadata` when I using `sqlc` to generate models. The struct name generated seems unexpected\r\n- table `bonuses` =\u003e struct name `Bonuse`\r\n- table `product_metadata` =\u003e struct name `ProductMetaDatum`\r\n\r\n\r\n### Relevant log output\r\n\r\n_No response_\r\n\r\n### Database schema\r\n\r\n_No response_\r\n\r\n### SQL queries\r\n\r\n_No response_\r\n\r\n### Configuration\r\n\r\n_No response_\r\n\r\n### Playground URL\r\n\r\nhttps://play.sqlc.dev/p/c459554e53b478b864dd0728b83783f6e7e22bc10c737cd3834f9df7435cec67\r\n\r\n### What operating system are you using?\r\n\r\nLinux\r\n\r\n### What database engines are you using?\r\n\r\nPostgreSQL\r\n\r\n### What type of code are you generating?\r\n\r\nGo","author":{"url":"https://github.com/qanghaa","@type":"Person","name":"qanghaa"},"datePublished":"2024-08-18T07:35:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3552/sqlc/issues/3552"}
| 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:ef5dbf9a-f1f7-309d-2aea-d97012c7096a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CD0:325D2D:3D0F62:518577:6A51C42A |
| html-safe-nonce | eea6129e8dac79a786d856cfa332c058ff5b4b88fe1546b2ba73da9830987b60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0QwOjMyNUQyRDozRDBGNjI6NTE4NTc3OjZBNTFDNDJBIiwidmlzaXRvcl9pZCI6Ijk4NDY5ODQ5OTM3ODU2MjA5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 977ebbe143bc265fd7e796243e2217340c90ec18a39f2a43502af50bab67f450 |
| hovercard-subject-tag | issue:2471838797 |
| 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/3552/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07b83bf3f9a25dae241c65c8b95ee4e428bf48915b8858e8b16031aa5ff6b366/sqlc-dev/sqlc/issues/3552 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07b83bf3f9a25dae241c65c8b95ee4e428bf48915b8858e8b16031aa5ff6b366/sqlc-dev/sqlc/issues/3552 |
| og:image:alt | Version 1.27.0 What happened? I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected table bonuses => struct name ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | qanghaa |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width