lamindb.models.SchemaOptionals¶
- class lamindb.models.SchemaOptionals(schema)¶
Bases:
objectManage and access optional features in a schema.
Methods¶
- get_uids()¶
Get the uids of the optional features.
Does not need an additional query to the database, while
get()does.- Return type:
list[str]
- set(features)¶
Set the optional features (overwrites whichever schemas are currently optional).
- Return type:
None
- remove(features)¶
Make one or multiple features required by removing them from the set of optional features.
- Return type:
None
- add(features)¶
Make one or multiple features optional by adding them to the set of optional features.
- Return type:
None