Skip to main content

find_in_db

Function find_in_db 

Source
fn find_in_db(
    table: &DB,
    column_name: &str,
    value: &str,
) -> Option<(usize, usize)>
Expand description

Finds the first row with a value in a column of a table.

If the column is localised, it’s not in the table’s data, so the first key column is searched instead.

§Returns

The column and row indexes of the row.