RB.ExtDBKey¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class RB.ExtDBKey¶
- classmethod create_lookup(field, value)¶
- Parameters:
- Returns:
the new key
- Return type:
Creates a new metadata lookup key with a single field. Use rb_ext_db_key_add_field to add more.
- classmethod create_storage(field, value)¶
- Parameters:
- Returns:
the new key
- Return type:
Creates a new metadata storage key with a single field. Use rb_ext_db_key_add_field to add more.
- add_field(field, value)¶
-
Adds a field to the key, or an additional value to an existing field.
- add_info(name, value)¶
-
Adds an information field to the key.
- copy()¶
- Returns:
copied key
- Return type:
Copies a key.
- field_matches(field, value)¶
- Parameters:
- Returns:
True
if the field matches the value- Return type:
Checks whether a specified field in self 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.
- free()¶
Frees a key
- get_field(field)¶
-
Extracts the value for a single-valued field.
- get_field_names()¶
- Returns:
array of field names
- Return type:
[
str
]
Returns a
None
-terminated array containing the names of the fields present in the key.
- get_field_values(field)¶
-
Extracts the values for the specified field.
- get_info(name)¶
-
Extracts the value for the specified info field.
- get_info_names()¶
- Returns:
array of info field names
- Return type:
[
str
]
Returns a
None
-terminated array containing the names of the info fields * present in the key.
- is_lookup()¶
- Returns:
whether the key is a lookup key
- Return type:
Returns
True
if the key is a lookup key
- matches(b)¶
- Parameters:
b (
RB.ExtDBKey
) – secondRB.ExtDBKey
- Returns:
True
if the keys match- Return type:
Checks whether the fields specified in self match b. For keys to match, they must have the same set of required fields, and the values for all must match. Optional fields must have the same values if present in both. Informational fields are ignored.