fn get_col_indices_to_insert(
cols_to_insert_in_table: &[ColumnCatalog],
cols_to_insert_by_user: &[Ident],
table_name: &str,
) -> Result<(Vec<usize>, Vec<usize>), RwError>
Expand description
Returned indices have the same length as cols_to_insert_in_table
.
The first elements have the same order as cols_to_insert_by_user
.
The rest are what’s not specified by the user.
Also checks there are no duplicate nor unknown columns provided by the user.