René's URL Explorer Experiment


Title: Improve support for SQL functions that return tables by jrperritt · Pull Request #1973 · sqlc-dev/sqlc · GitHub

Open Graph Title: Improve support for SQL functions that return tables by jrperritt · Pull Request #1973 · sqlc-dev/sqlc

X Title: Improve support for SQL functions that return tables by jrperritt · Pull Request #1973 · sqlc-dev/sqlc

Description: This change adds an IsArray field for function parameters and creates structs for PosgreSQL functions that return tables. There are a couple of examples in internal/endtoend/testdata/func_return_table/, in addition to the existing examples in func_return that didn't regress. closes #1322

Open Graph Description: This change adds an IsArray field for function parameters and creates structs for PosgreSQL functions that return tables. There are a couple of examples in internal/endtoend/testdata/func_return_ta...

X Description: This change adds an IsArray field for function parameters and creates structs for PosgreSQL functions that return tables. There are a couple of examples in internal/endtoend/testdata/func_return_ta...

Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/1973

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:39a5a4e0-2178-34ac-bca9-f82d41370643
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB03C:15606D:7F31AA:AA953C:6A51A8E2
html-safe-nonce5b188686a2a19f1aa3e3b623dce09bdcf358d11c8167653c1eac27e9d87c7cca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDNDOjE1NjA2RDo3RjMxQUE6QUE5NTNDOjZBNTFBOEUyIiwidmlzaXRvcl9pZCI6IjUyMTY2MjY1MDczODA3OTU2MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd7059445bc18b24de02bac115929ae21650463620c6c3d883c814acfabeaf1a4
hovercard-subject-tagpull_request:1140778513
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/1973/files
twitter:imagehttps://avatars.githubusercontent.com/u/1733222?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1733222?s=400&v=4
og:image:altThis change adds an IsArray field for function parameters and creates structs for PosgreSQL functions that return tables. There are a couple of examples in internal/endtoend/testdata/func_return_ta...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id193160679
octolytics-dimension-repository_nwosqlc-dev/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193160679
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/1973/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1973%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F1973%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1973/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1973/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/1973/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1973/files
sqlc-dev https://github.com/sqlc-dev
sqlchttps://github.com/sqlc-dev/sqlc
Notifications https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Fork 1.1k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Star 18k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Code https://github.com/sqlc-dev/sqlc
Issues 597 https://github.com/sqlc-dev/sqlc/issues
Pull requests 106 https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality 0 https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
Code https://github.com/sqlc-dev/sqlc
Issues https://github.com/sqlc-dev/sqlc/issues
Pull requests https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
jrperritthttps://github.com/jrperritt
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
jrperritt:func-table-return-typehttps://github.com/jrperritt/sqlc/tree/func-table-return-type
Conversation 8 https://github.com/sqlc-dev/sqlc/pull/1973
Commits 1 https://github.com/sqlc-dev/sqlc/pull/1973/commits
Checks 0 https://github.com/sqlc-dev/sqlc/pull/1973/checks
Files changed https://github.com/sqlc-dev/sqlc/pull/1973/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1973/files
Improve support for SQL functions that return tables https://github.com/sqlc-dev/sqlc/pull/1973/files#top
Show all changes 1 commit https://github.com/sqlc-dev/sqlc/pull/1973/files
66f537c Improve support for returning tables from postgresql functions. jrperritt Oct 23, 2023 https://github.com/sqlc-dev/sqlc/pull/1973/commits/66f537cc3eb8ae7cec94023f36c14bd078c24bcd
Clear filters https://github.com/sqlc-dev/sqlc/pull/1973/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1973/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1973/files
output_columns.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061
resolve.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-111ef9c1f26d2d0b8ea24733a1871bd77e2bac3c415607a085e092a34cbe6677
query.sql.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-8f17d206044010012f743b0701a019fda8cf3a53e6440421a6769333368822a5
query.sql https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-345b178b7b84ffc7c9d00297029016e618956b0913424f0e1ec9202d98162b8b
schema.sql https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-ac2a818ea41fab2dd90d82abbbdf3a20e6b79445c81e2a459247d46b1a033a84
parse.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3bed0ae3856c83bdc72f1b0d9968184e9130b90911ee7d5c6796b97659220200
func_param.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3944627f407472d9a49041032a45055c75d5c7b1f88ea200857df21ce7214280
function_parameter.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-953055e26fda681ce06bbcd4616d8861644ebcf7512438a54a50064cc728dd23
func.go https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-484a84d393e55820b0350a5f31950677e68cec9d15e763249c3eadef79f98e53
internal/compiler/output_columns.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/compiler/output_columns.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061
internal/compiler/resolve.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-111ef9c1f26d2d0b8ea24733a1871bd77e2bac3c415607a085e092a34cbe6677
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/compiler/resolve.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-111ef9c1f26d2d0b8ea24733a1871bd77e2bac3c415607a085e092a34cbe6677
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-111ef9c1f26d2d0b8ea24733a1871bd77e2bac3c415607a085e092a34cbe6677
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-111ef9c1f26d2d0b8ea24733a1871bd77e2bac3c415607a085e092a34cbe6677
internal/endtoend/testdata/func_return_table/postgresql/pgx/go/query.sql.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-8f17d206044010012f743b0701a019fda8cf3a53e6440421a6769333368822a5
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/endtoend/testdata/func_return_table/postgresql/pgx/go/query.sql.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/1973/files
internal/endtoend/testdata/func_return_table/postgresql/pgx/query.sqlhttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-345b178b7b84ffc7c9d00297029016e618956b0913424f0e1ec9202d98162b8b
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/endtoend/testdata/func_return_table/postgresql/pgx/query.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
internal/endtoend/testdata/func_return_table/postgresql/pgx/schema.sqlhttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-ac2a818ea41fab2dd90d82abbbdf3a20e6b79445c81e2a459247d46b1a033a84
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/endtoend/testdata/func_return_table/postgresql/pgx/schema.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-ac2a818ea41fab2dd90d82abbbdf3a20e6b79445c81e2a459247d46b1a033a84
internal/engine/postgresql/parse.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3bed0ae3856c83bdc72f1b0d9968184e9130b90911ee7d5c6796b97659220200
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/engine/postgresql/parse.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3bed0ae3856c83bdc72f1b0d9968184e9130b90911ee7d5c6796b97659220200
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3bed0ae3856c83bdc72f1b0d9968184e9130b90911ee7d5c6796b97659220200
internal/sql/ast/func_param.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3944627f407472d9a49041032a45055c75d5c7b1f88ea200857df21ce7214280
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/sql/ast/func_param.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3944627f407472d9a49041032a45055c75d5c7b1f88ea200857df21ce7214280
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-3944627f407472d9a49041032a45055c75d5c7b1f88ea200857df21ce7214280
internal/sql/ast/function_parameter.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-953055e26fda681ce06bbcd4616d8861644ebcf7512438a54a50064cc728dd23
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/sql/ast/function_parameter.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-953055e26fda681ce06bbcd4616d8861644ebcf7512438a54a50064cc728dd23
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-953055e26fda681ce06bbcd4616d8861644ebcf7512438a54a50064cc728dd23
internal/sql/catalog/func.gohttps://github.com/sqlc-dev/sqlc/pull/1973/files#diff-484a84d393e55820b0350a5f31950677e68cec9d15e763249c3eadef79f98e53
View file https://github.com/sqlc-dev/sqlc/blob/66f537cc3eb8ae7cec94023f36c14bd078c24bcd/internal/sql/catalog/func.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/1973/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-484a84d393e55820b0350a5f31950677e68cec9d15e763249c3eadef79f98e53
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-484a84d393e55820b0350a5f31950677e68cec9d15e763249c3eadef79f98e53
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-484a84d393e55820b0350a5f31950677e68cec9d15e763249c3eadef79f98e53
https://github.com/sqlc-dev/sqlc/pull/1973/files#diff-484a84d393e55820b0350a5f31950677e68cec9d15e763249c3eadef79f98e53
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.