FiftyOne migrations runner.
Class |
|
Class for running FiftyOne migrations. |
Function | get |
Gets the current revision of the database. |
Function | get |
Gets the current revision of the given dataset. |
Function | migrate |
Migrates the database and all datasets to the specified destination revision. |
Function | migrate |
Migrates the database to the specified revision, if necessary. |
Function | migrate |
Migrates the dataset from its current revision to the specified destination revision. |
Function | needs |
Determines whether a dataset requires a migration in order to be used in the specified destination revision. |
Function |
|
A packaging.version.Version proxy that excludes things like RC version info. |
Constant | DOWN |
Undocumented |
Constant | UP |
Undocumented |
Variable | logger |
Undocumented |
Function | _can |
Undocumented |
Function | _database |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Undocumented |
Function | _is |
Undocumented |
Function | _migrate |
Undocumented |
Function | _migrations |
Undocumented |
Gets the current revision of the given dataset.
Parameters | |
name | the name of the dataset |
Returns | |
the dataset revision string |
Migrates the database and all datasets to the specified destination revision.
If fiftyone.config.database_admin is False and no destination is provided, the database and each dataset will only be migrated if their current versions are not compatible with the client's version.
Parameters | |
destination:None | the destination revision. By default, the fiftyone client version is used |
error | the error level to use if an individual dataset cannot be migrated. Valid values are:
|
verbose:False | whether to log incremental migrations that are run |
Migrates the database to the specified revision, if necessary.
If fiftyone.config.database_admin is False and no destination is provided, the database will only be migrated if its current version is not compatible with the client's version.
Parameters | |
destination:None | the destination revision. By default, the fiftyone client version is used |
verbose:False | whether to log incremental migrations that are run |
config:None | an optional DatabaseConfigDocument . By default,
DB config is pulled from the database. |
Migrates the dataset from its current revision to the specified destination revision.
If fiftyone.config.database_admin is False and no destination is provided, the dataset will only be migrated if its current version is not compatible with the client's version.
Parameters | |
name | the name of the dataset |
destination:None | the destination revision. By default, the current database version is used |
error | the error level to use. Valid values are:
|
verbose:False | whether to log incremental migrations that are run |
Determines whether a dataset requires a migration in order to be used in the specified destination revision.
To use this method, specify either the name of an existing dataset or provide the head revision of the dataset.
If fiftyone.config.database_admin is False and no destination is provided, a dataset will be deemed to require no migration if its current version if compatible with the client's version.
Parameters | |
name:None | the name of the dataset |
head:None | the current revision of the dataset |
destination:None | the destination revision. By default, the current database version is used |
Returns | |
True/False |