lamindb.models.SchemaOptionals¶
- class lamindb.models.SchemaOptionals(schema)¶
Bases:
object
Manage and access optional features in a schema.
Methods¶
- add(features)¶
Make one or multiple features optional by adding them to the set of optional features.
- Return type:
None
- 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
]
- remove(features)¶
Make one or multiple features required by removing them from the set of optional features.
- Return type:
None
- set(features)¶
Set the optional features (overwrites whichever schemas are currently optional).
- Return type:
None