Skip to main content

render_columns

Function render_columns 

Source
pub fn render_columns<Q, T>(
    columns: &[PlannedColumn],
    quote: Q,
    ty: T,
) -> String
where Q: Fn(&str) -> String, T: Fn(SqlBaseType) -> &'static str,
Expand description

Render a CREATE TABLE column list, given a dialect’s type mapper and identifier quoter.

Kept separate from plan_columns so a sink whose CREATE TABLE needs extra clauses (a primary key, a partition spec, an engine) composes this into its own statement rather than fighting a one-size template.