diff --git a/ezidapp/management/commands/diag-db-stats.py b/ezidapp/management/commands/diag-db-stats.py index 991f4043..5b7f83ee 100644 --- a/ezidapp/management/commands/diag-db-stats.py +++ b/ezidapp/management/commands/diag-db-stats.py @@ -26,8 +26,7 @@ import ezidapp.models.async_queue import ezidapp.models.identifier import impl.enqueue -import impl.nog_bdb.counter -import impl.nog_bdb.tb +import impl.nog_sql.counter import impl.nog_sql.util log = logging.getLogger(__name__) @@ -62,7 +61,7 @@ def handle(self, *_, **opt): class ORMStats: def __init__(self): self.exit_stack = contextlib.ExitStack() - self.counter = self.exit_stack.enter_context(impl.nog_bdb.counter.Counter()) + self.counter = self.exit_stack.enter_context(impl.nog_sql.counter.Counter()) self.page_size = django.conf.settings.QUERY_PAGE_SIZE def print_identifier(self, identifier): diff --git a/impl/nog_bdb/counter.py b/impl/nog_sql/counter.py similarity index 100% rename from impl/nog_bdb/counter.py rename to impl/nog_sql/counter.py diff --git a/migrate_db_to_py3/diag-check-metadata.py b/migrate_db_to_py3/diag-check-metadata.py index 113d6090..c9d6f7d5 100644 --- a/migrate_db_to_py3/diag-check-metadata.py +++ b/migrate_db_to_py3/diag-check-metadata.py @@ -43,7 +43,7 @@ import django.db.models import django.db.transaction -import impl.nog_bdb.counter +import impl.nog_sql.counter log = logging.getLogger(__name__) @@ -71,7 +71,7 @@ def handle(self, *_, **opt): class ViaORM: def __init__(self): self.exit_stack = contextlib.ExitStack() - self.counter = self.exit_stack.enter_context(impl.nog_bdb.counter.Counter()) + self.counter = self.exit_stack.enter_context(impl.nog_sql.counter.Counter()) self.page_size = django.conf.settings.QUERY_PAGE_SIZE def list_blobs_all(self): diff --git a/tools_dev/tag_log.py b/tools_dev/tag_log.py index c081b7e6..fbba7925 100755 --- a/tools_dev/tag_log.py +++ b/tools_dev/tag_log.py @@ -10,7 +10,7 @@ import re import sys -import impl.nog_bdb.counter +import impl.nog_sql.counter log = logging.getLogger(__name__) @@ -86,7 +86,7 @@ def __init__(self, args): def __enter__(self): self.exit_stack = contextlib.ExitStack() - self.counter = self.exit_stack.enter_context(impl.nog_bdb.counter.Counter()) + self.counter = self.exit_stack.enter_context(impl.nog_sql.counter.Counter()) self.count = self.counter.count return self