Skip to main content

m2m_insert_sql

Function m2m_insert_sql 

Source
pub fn m2m_insert_sql(
    table: &str,
    parent_col: &str,
    child_col: &str,
    row_count: usize,
) -> String
Expand description

Generates a batched INSERT INTO through_table (parent_col, child_col) VALUES (?, ?), (?, ?), ... statement for M2M join rows.