field_matches

@accepts(utf8, utf8)
@returns(gboolean)
def field_matches(field, value)

Checks whether a specified field in @key matches a value. This can be used to match keys against other types of data. To match keys against each other, use @rb_ext_db_key_matches.

field :

a field to check

value :

a value to match against

Returns :

True if the field matches the value