Title: Support for Refresh Materialized View · Issue #2264 · sqlc-dev/sqlc · GitHub
Open Graph Title: Support for Refresh Materialized View · Issue #2264 · sqlc-dev/sqlc
X Title: Support for Refresh Materialized View · Issue #2264 · sqlc-dev/sqlc
Description: What do you want to change? While playing around with Postgres Materialized Views I noticed that support for querying them was added in #1509 but I can't find a way to refresh them using sqlc. I'd expect the following query to generate a...
Open Graph Description: What do you want to change? While playing around with Postgres Materialized Views I noticed that support for querying them was added in #1509 but I can't find a way to refresh them using sqlc. I'd ...
X Description: What do you want to change? While playing around with Postgres Materialized Views I noticed that support for querying them was added in #1509 but I can't find a way to refresh them using sqlc. ...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/2264
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for Refresh Materialized View","articleBody":"### What do you want to change?\n\nWhile playing around with Postgres Materialized Views I noticed that support for querying them was added in #1509 but I can't find a way to refresh them using sqlc.\r\n\r\nI'd expect the following query to generate a method just like any `exec` annotation would:\r\n```sql\r\n-- name: RefreshFooView :exec\r\nREFRESH MATERIALIZED VIEW foo_view;\r\n```\r\n```go\r\nRefreshFooView(ctx context.Context) error\r\n```\r\n\r\nLooking at the source code, it seems like `ast.RefreshMatViewStmt` is already being parsed but ignored as an unsupported statement. Is there any other way to refresh a Materialized View without falling back to the raw database connection or could support for this query be added to sqlc?\n\n### What database engines need to be changed?\n\nPostgreSQL\n\n### What programming language backends need to be changed?\n\nGo","author":{"url":"https://github.com/friedemannf","@type":"Person","name":"friedemannf"},"datePublished":"2023-05-05T10:38:49Z","url":"https://github.com/sqlc-dev/sqlc/issues/2264"}
| 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:f8be6c4c-07b2-bb3b-558c-144cee2d46b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E192:2D2F2F:28E304E:342F2BB:6B019286 |
| html-safe-nonce | 3181a538e3386069595ad42268660eb06d47b31e3abbbda5be2934db55135022 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTkyOjJEMkYyRjoyOEUzMDRFOjM0MkYyQkI6NkIwMTkyODYiLCJ2aXNpdG9yX2lkIjoiNTM5MzA1MDAwNzEzMTc1NTE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac312040274d83dd8187c0a38edc6027d757d2878260ccd90565adb4ec6dd4e4 |
| hovercard-subject-tag | issue:1697394867 |
| 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/2264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5472f4a54de2ded90499889df7e6b53508c24d12a7bf9c54cc81b61d569a497/sqlc-dev/sqlc/issues/2264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5472f4a54de2ded90499889df7e6b53508c24d12a7bf9c54cc81b61d569a497/sqlc-dev/sqlc/issues/2264 |
| og:image:alt | What do you want to change? While playing around with Postgres Materialized Views I noticed that support for querying them was added in #1509 but I can't find a way to refresh them using sqlc. I'd ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | friedemannf |
| 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