OEMatchField¶
class OEMatchField
OEMatchField is a factory function returning a specialized match field object. The returned match field is used to retrieve values from an OERecord object when the name of the field is unknown. An OEMatchField object acts as a surrogate for the first field of a record that matches the type and metadata.
OEMatchField(name: str, meta: OEFieldMeta, read_only: bool=False, nullable: bool=False)
- name
The name to be given to the created match field. It is only used if the match field is used to create a new field on a record.
- meta
An OEFieldMeta object containing metadata for the returned match field.
- read_only
If True, the returned match field can only be used for reading from, and not writing to, OERecord objects.
- nullable
If True, the returned match field can be used to set null values onto an OERecord.
See also