insert_new_row

Function insert_new_row 

Source
pub async fn insert_new_row(
    global_config: &ConfigMap,
    pool: &AnyPool,
    table_name: &str,
    row: &ConfigMap,
) -> Result<u32, Error>
Expand description

Given a global config map, a database connection pool, a table name, and a row, assign a new row number to the row and insert it to the database, then return the new row number.