Title: Support composite types · Issue #2760 · sqlc-dev/sqlc · GitHub
Open Graph Title: Support composite types · Issue #2760 · sqlc-dev/sqlc
X Title: Support composite types · Issue #2760 · sqlc-dev/sqlc
Description: CREATE TYPE CREATE TYPE myarg as ( id integer, name text ); -- name: BasicQuery :one select $1::myarg; Automatic table types https://www.postgresql.org/docs/current/rowtypes.html Whenever you create a table, a composite type is also auto...
Open Graph Description: CREATE TYPE CREATE TYPE myarg as ( id integer, name text ); -- name: BasicQuery :one select $1::myarg; Automatic table types https://www.postgresql.org/docs/current/rowtypes.html Whenever you creat...
X Description: CREATE TYPE CREATE TYPE myarg as ( id integer, name text ); -- name: BasicQuery :one select $1::myarg; Automatic table types https://www.postgresql.org/docs/current/rowtypes.html Whenever you creat...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/2760
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support composite types","articleBody":"### `CREATE TYPE`\r\n\r\n```sql\r\nCREATE TYPE myarg as (\r\n id integer,\r\n name text\r\n);\r\n\r\n-- name: BasicQuery :one\r\nselect $1::myarg;\r\n```\r\n\r\n### Automatic table types\r\n\r\nhttps://www.postgresql.org/docs/current/rowtypes.html\r\n\r\n\u003e Whenever you create a table, a composite type is also automatically created, with the same name as the table, to represent the table's row type. For example, had we said:\r\n\r\n```sql\r\nCREATE TABLE authors (\r\n id BIGSERIAL PRIMARY KEY,\r\n name text NOT NULL,\r\n bio text\r\n);\r\n\r\n-- name: AutomatiicType :many\r\nselect authors from authors;\r\n```","author":{"url":"https://github.com/kyleconroy","@type":"Person","name":"kyleconroy"},"datePublished":"2023-09-22T17:09:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2760/sqlc/issues/2760"}
| 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:3eb4f83a-4b91-8454-6521-4760a5d91626 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4AE:29BECE:22DFE9B:2E5B635:6A52051E |
| html-safe-nonce | 7b52a469133740d45a27ba51f207c8d28d02bfbd164eec6583ac946af9b48b1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEFFOjI5QkVDRToyMkRGRTlCOjJFNUI2MzU6NkE1MjA1MUUiLCJ2aXNpdG9yX2lkIjoiNjI4MDQ4MjYzNDA5NDM1OTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b231fbd308d227fe97f532e6f2e0c44c1968739dd83269a97755e1944e89c226 |
| hovercard-subject-tag | issue:1909257244 |
| 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/2760/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e113f3cca9d203fcc635f3bca5308f8450d1e6bb28e82db6781ccfb64a5b35e0/sqlc-dev/sqlc/issues/2760 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e113f3cca9d203fcc635f3bca5308f8450d1e6bb28e82db6781ccfb64a5b35e0/sqlc-dev/sqlc/issues/2760 |
| og:image:alt | CREATE TYPE CREATE TYPE myarg as ( id integer, name text ); -- name: BasicQuery :one select $1::myarg; Automatic table types https://www.postgresql.org/docs/current/rowtypes.html Whenever you creat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kyleconroy |
| 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