Skip to main content

render

Function render 

pub fn render(template: &str, config: &NeonConfig) -> Vec<String>
Expand description

Renders template against config and splits it into statements.

The placeholders are @schema@, @event@, @sequence@, @meta@, @checkpoint@ and the index names — spelled @…@ rather than {…} so that a format!-shaped brace appearing in SQL some day is not a rendering bug, and so that an unsubstituted placeholder is a syntax error at the server rather than a plausible identifier.