Title: custom struct tags are not emmited · Issue #3143 · sqlc-dev/sqlc · GitHub
Open Graph Title: custom struct tags are not emmited · Issue #3143 · sqlc-dev/sqlc
X Title: custom struct tags are not emmited · Issue #3143 · sqlc-dev/sqlc
Description: Version 1.25.0 What happened? I am trying to set a custom struct tag but its not generated with the model. Relevant log output // Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.25.0 package store import ( "database/sql" ) t...
Open Graph Description: Version 1.25.0 What happened? I am trying to set a custom struct tag but its not generated with the model. Relevant log output // Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.25.0 p...
X Description: Version 1.25.0 What happened? I am trying to set a custom struct tag but its not generated with the model. Relevant log output // Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.25.0 p...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3143
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"custom struct tags are not emmited","articleBody":"### Version\n\n1.25.0\n\n### What happened?\n\nI am trying to set a custom struct tag but its not generated with the model.\n\n### Relevant log output\n\n```shell\n// Code generated by sqlc. DO NOT EDIT.\r\n// versions:\r\n// sqlc v1.25.0\r\n\r\npackage store\r\n\r\nimport (\r\n\t\"database/sql\"\r\n)\r\n\r\ntype Test struct {\r\n\tNullstring sql.NullString\r\n}\n```\n\n\n### Database schema\n\n```sql\ncreate table test (\r\n nullstring text\r\n)\n```\n\n\n### SQL queries\n\n```sql\n-- name: read :one\r\nselect * from test where nullstring = ?;\n```\n\n\n### Configuration\n\n```yaml\nversion: \"2\"\r\nsql:\r\n- engine: sqlite\r\n queries: ./query.sql\r\n schema: ./schema.sql\r\n gen:\r\n go:\r\n package: store\r\n out: ./store/\r\n overrides:\r\n - db_type: text\r\n nullable: true\r\n go_struct_tag: a:\"b\"\n```\n\n\n### Playground URL\n\n_No response_\n\n### What operating system are you using?\n\nLinux\n\n### What database engines are you using?\n\nSQLite\n\n### What type of code are you generating?\n\nGo","author":{"url":"https://github.com/bluebrown","@type":"Person","name":"bluebrown"},"datePublished":"2024-01-15T19:09:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/3143/sqlc/issues/3143"}
| 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:9eca96e8-7e18-ecaf-03ef-6286b648481a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D57C:1EBB85:2EB1FE0:418B920:6A50E8C9 |
| html-safe-nonce | 681f38459724b36f650278066d5f3af4b679a2cfe9a156ba14d6d293d5c786bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTdDOjFFQkI4NToyRUIxRkUwOjQxOEI5MjA6NkE1MEU4QzkiLCJ2aXNpdG9yX2lkIjoiMzE3MzU2OTcwNjM3MzIxMjM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 47c8a4bddcc4c16c29e8bf6da6690869ce22e3bb5a8c57a4a0a6ce745eb2395b |
| hovercard-subject-tag | issue:2082558450 |
| 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/3143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3370bc2eb09b4abdef958866772475bd9846fb9ef2f563b55ec04d35c0ddea1/sqlc-dev/sqlc/issues/3143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3370bc2eb09b4abdef958866772475bd9846fb9ef2f563b55ec04d35c0ddea1/sqlc-dev/sqlc/issues/3143 |
| og:image:alt | Version 1.25.0 What happened? I am trying to set a custom struct tag but its not generated with the model. Relevant log output // Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.25.0 p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bluebrown |
| 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 | fb19d617b534959801b4b7453938ecf1dfa22131 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width