lamindb.models.SchemaOptionals¶
- class lamindb.models.SchemaOptionals(schema)¶
Bases:
object
Manage and access optional features in a schema.
Methods¶
- add(features)¶
Add feature to the 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
]
- set(features)¶
Set the optional features.
- Return type:
None