tuplestores can define #find_all_matches_for
sqlite example doc