Title: Join table returned row(s) should include tablename prefix · Issue #1630 · sqlc-dev/sqlc · GitHub
Open Graph Title: Join table returned row(s) should include tablename prefix · Issue #1630 · sqlc-dev/sqlc
X Title: Join table returned row(s) should include tablename prefix · Issue #1630 · sqlc-dev/sqlc
Description: What do you want to change? Large joins can give you join row structs that look like this: type RetrieveMarketplacesRow struct { ID string AccountID string ... CreatedAt time.Time UpdatedAt time.Time ID_2 string AccountID_2 string ... Cr...
Open Graph Description: What do you want to change? Large joins can give you join row structs that look like this: type RetrieveMarketplacesRow struct { ID string AccountID string ... CreatedAt time.Time UpdatedAt time.Ti...
X Description: What do you want to change? Large joins can give you join row structs that look like this: type RetrieveMarketplacesRow struct { ID string AccountID string ... CreatedAt time.Time UpdatedAt time.Ti...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1630
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Join table returned row(s) should include tablename prefix","articleBody":"### What do you want to change?\n\nLarge joins can give you join row structs that look like this:\r\n```\r\ntype RetrieveMarketplacesRow struct {\r\n\tID string\r\n\tAccountID string\r\n ...\r\n\tCreatedAt time.Time\r\n\tUpdatedAt time.Time\r\n\tID_2 string\r\n\tAccountID_2 string\r\n\t...\r\n\tCreatedAt_2 time.Time\r\n\tUpdatedAt_2 time.Time\r\n\tID_3 string\r\n\tAccountID_3 string\r\n\t...\r\n\tCreatedAt_3 time.Time\r\n\tUpdatedAt_3 time.Time\r\n}\r\n```\r\nIf I change my query, I need to make sure my corresponding code uses the correct number, whereas if these repeated fields were prefixed by table, there would be less application errors.\r\n\r\nThere should be a configuration option that prefixes all return values on join rows with the table name.\r\n\r\nThis is similar to https://github.com/kyleconroy/sqlc/issues/560\n\n### What database engines need to be changed?\n\nPostgreSQL, MySQL\n\n### What programming language backends need to be changed?\n\nGo, Python, Kotlin","author":{"url":"https://github.com/kennedyjustin","@type":"Person","name":"kennedyjustin"},"datePublished":"2022-05-19T15:38:41Z","url":"https://github.com/sqlc-dev/sqlc/issues/1630"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:103e61a9-f6e2-caed-4676-eac01340e4ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEA2:3CBB3E:15C414D:1BA7A03:6B0174CF |
| html-safe-nonce | 7a927f1eddffe8aa01a058bf38166d6b53928afa575f3f8f1277db693ca1ddab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUEyOjNDQkIzRToxNUM0MTREOjFCQTdBMDM6NkIwMTc0Q0YiLCJ2aXNpdG9yX2lkIjoiMTQ0MjI1MTA2Nzc2NDA3Nzc3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7620aea4a737d527b9d6e61a9dc9d129e2e8d83a364d2eeb1b622cfc809f1693 |
| hovercard-subject-tag | issue:1241972112 |
| 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/1630/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8484d22dbd1f4fa5c214e8091b164baabf80ce4d9eb2619732ffc4f0b57ddf13/sqlc-dev/sqlc/issues/1630 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8484d22dbd1f4fa5c214e8091b164baabf80ce4d9eb2619732ffc4f0b57ddf13/sqlc-dev/sqlc/issues/1630 |
| og:image:alt | What do you want to change? Large joins can give you join row structs that look like this: type RetrieveMarketplacesRow struct { ID string AccountID string ... CreatedAt time.Time UpdatedAt time.Ti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kennedyjustin |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width