From 021f92fadc553768a515c8eb3eeace7f03e3eeef Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 24 Sep 2023 15:21:22 +1000 Subject: [PATCH] feat(backend): rename `db.py` to `sqlite.py` --- invokeai/app/api/dependencies.py | 2 +- invokeai/app/services/board_image_record_storage.py | 2 +- invokeai/app/services/board_record_storage.py | 2 +- invokeai/app/services/image_record_storage.py | 2 +- invokeai/app/services/session_queue/session_queue_sqlite.py | 2 +- invokeai/app/services/shared/{db.py => sqlite.py} | 0 invokeai/app/services/sqlite.py | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename invokeai/app/services/shared/{db.py => sqlite.py} (100%) diff --git a/invokeai/app/api/dependencies.py b/invokeai/app/api/dependencies.py index aa17bf08d7..44538ceefd 100644 --- a/invokeai/app/api/dependencies.py +++ b/invokeai/app/api/dependencies.py @@ -13,7 +13,7 @@ from invokeai.app.services.invocation_cache.invocation_cache_memory import Memor from invokeai.app.services.resource_name import SimpleNameService from invokeai.app.services.session_processor.session_processor_default import DefaultSessionProcessor from invokeai.app.services.session_queue.session_queue_sqlite import SqliteSessionQueue -from invokeai.app.services.shared.db import SqliteDatabase +from invokeai.app.services.shared.sqlite import SqliteDatabase from invokeai.app.services.urls import LocalUrlService from invokeai.backend.util.logging import InvokeAILogger from invokeai.version.invokeai_version import __version__ diff --git a/invokeai/app/services/board_image_record_storage.py b/invokeai/app/services/board_image_record_storage.py index b0bc65ba75..63d09b45fb 100644 --- a/invokeai/app/services/board_image_record_storage.py +++ b/invokeai/app/services/board_image_record_storage.py @@ -4,7 +4,7 @@ from abc import ABC, abstractmethod from typing import Optional, cast from invokeai.app.services.models.image_record import ImageRecord, deserialize_image_record -from invokeai.app.services.shared.db import SqliteDatabase +from invokeai.app.services.shared.sqlite import SqliteDatabase from invokeai.app.services.shared.pagination import OffsetPaginatedResults diff --git a/invokeai/app/services/board_record_storage.py b/invokeai/app/services/board_record_storage.py index 7e4e44a084..dca549cd23 100644 --- a/invokeai/app/services/board_record_storage.py +++ b/invokeai/app/services/board_record_storage.py @@ -6,7 +6,7 @@ from typing import Optional, Union, cast from pydantic import BaseModel, Extra, Field from invokeai.app.services.models.board_record import BoardRecord, deserialize_board_record -from invokeai.app.services.shared.db import SqliteDatabase +from invokeai.app.services.shared.sqlite import SqliteDatabase from invokeai.app.services.shared.pagination import OffsetPaginatedResults from invokeai.app.util.misc import uuid_string diff --git a/invokeai/app/services/image_record_storage.py b/invokeai/app/services/image_record_storage.py index 482c5e15f3..509dd03d22 100644 --- a/invokeai/app/services/image_record_storage.py +++ b/invokeai/app/services/image_record_storage.py @@ -7,7 +7,7 @@ from typing import Optional, cast from invokeai.app.models.image import ImageCategory, ResourceOrigin from invokeai.app.services.models.image_record import ImageRecord, ImageRecordChanges, deserialize_image_record -from invokeai.app.services.shared.db import SqliteDatabase +from invokeai.app.services.shared.sqlite import SqliteDatabase from invokeai.app.services.shared.pagination import OffsetPaginatedResults diff --git a/invokeai/app/services/session_queue/session_queue_sqlite.py b/invokeai/app/services/session_queue/session_queue_sqlite.py index ea9693697d..44ae50f007 100644 --- a/invokeai/app/services/session_queue/session_queue_sqlite.py +++ b/invokeai/app/services/session_queue/session_queue_sqlite.py @@ -29,7 +29,7 @@ from invokeai.app.services.session_queue.session_queue_common import ( calc_session_count, prepare_values_to_insert, ) -from invokeai.app.services.shared.db import SqliteDatabase +from invokeai.app.services.shared.sqlite import SqliteDatabase from invokeai.app.services.shared.pagination import CursorPaginatedResults diff --git a/invokeai/app/services/shared/db.py b/invokeai/app/services/shared/sqlite.py similarity index 100% rename from invokeai/app/services/shared/db.py rename to invokeai/app/services/shared/sqlite.py diff --git a/invokeai/app/services/sqlite.py b/invokeai/app/services/sqlite.py index d0b978ffeb..eae714a795 100644 --- a/invokeai/app/services/sqlite.py +++ b/invokeai/app/services/sqlite.py @@ -4,7 +4,7 @@ from typing import Generic, Optional, TypeVar, get_args from pydantic import BaseModel, parse_raw_as -from invokeai.app.services.shared.db import SqliteDatabase +from invokeai.app.services.shared.sqlite import SqliteDatabase from invokeai.app.services.shared.pagination import PaginatedResults from .item_storage import ItemStorageABC