Skip to main content

build_copy_insert

Function build_copy_insert 

Source
pub fn build_copy_insert(
    table: &str,
    columns: Option<&[String]>,
    values: &[Option<String>],
) -> String
Expand description

Build INSERT INTO <table> [(cols)] VALUES (…) from a decoded row. Numeric-looking and boolean cells go in bare so the engine sees typed literals; everything else is single-quoted with SQL escaping.