Skip to main content

log_stats_ddl_text

Function log_stats_ddl_text 

Source
pub fn log_stats_ddl_text() -> String
Expand description

Assembles log_stats_view_definition()’s equivalent CREATE MATERIALIZED VIEW log_stats WITH (...) DDL text, for the migration seed’s definition_sql column (kept for display and audit only – never re-parsed). Each query is wrapped in $$...$$; none of them contains a $$, so no quote-escaping helper is needed.