Skip to main content

rust_row_struct

Function rust_row_struct 

Source
pub fn rust_row_struct(
    struct_name: &str,
    columns: &[(String, String)],
) -> String
Expand description

Emit a Rust row struct for a table’s columns — (column_name, clickhouse_type) pairs. Derives the clickhouse crate’s Row + serde, so it deserializes straight from a query. The emitted source references clickhouse::Row (a dev/consumer dependency); this function only produces the string.