Skip to content
Snippets Groups Projects

db.BaseDb: Propose default get_current_version method implementation

Compare and
5 files
+ 46
11
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 2
2
@@ -114,8 +114,8 @@ conditions are expected:
returning an instance of the datastore object. Normally, this datastore
object uses ``swh.core.db.BaseDb`` to interact with the actual database.
- The datastore object should provide a ``current_version`` attribute returning the
database version expected by the code.
- The datastore object should provide a ``get_current_version()`` method
returning the database version expected by the code.
See existing ``swh`` packages like ``swh.storage`` or ``swh.scheduler`` for
usage examples.
Loading