Closed
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 method just like any exec
annotation would:
-- name: RefreshFooView :exec
REFRESH MATERIALIZED VIEW foo_view;
RefreshFooView(ctx context.Context) error
Looking 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?
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go