Skip to main content

insert_test_data_sql

Function insert_test_data_sql 

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

Generate an INSERT statement for test data.

Values are inserted as raw SQL expressions (e.g., 'Alice', NOW()), so they are NOT parameterised. Table and column names are properly quoted via reinhardt_query::Iden.