pub fn location_to_index(sql: &str, location: &Location) -> usize
translate the start location to the index in the sql string