Skip to main content

Module row_views

Module row_views 

Source
Expand description

Row-shaped SQL view (vr_*) DDL generation for the gRPC transport.

Generates CREATE VIEW vr_<entity> statements that extract individual scalar fields from the JSONB data column into typed SQL columns. These views are CQRS read projections optimized for protobuf wire encoding — the database returns native typed columns instead of JSON.

Functions§

generate_all_row_views
Generate DDL for all types in a compiled schema.
generate_row_view_sql
Generate the DDL for a row-shaped view from a type definition.