From 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:10:44 -0400 Subject: venv --- .../litestar/contrib/sqlalchemy/__init__.py | 0 .../__pycache__/__init__.cpython-311.pyc | Bin 0 -> 211 bytes .../sqlalchemy/__pycache__/base.cpython-311.pyc | Bin 0 -> 1044 bytes .../sqlalchemy/__pycache__/dto.cpython-311.pyc | Bin 0 -> 412 bytes .../sqlalchemy/__pycache__/types.cpython-311.pyc | Bin 0 -> 487 bytes .../litestar/contrib/sqlalchemy/base.py | 38 +++++++++++++++++++++ .../litestar/contrib/sqlalchemy/dto.py | 5 +++ .../contrib/sqlalchemy/plugins/__init__.py | 28 +++++++++++++++ .../plugins/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 895 bytes .../__pycache__/serialization.cpython-311.pyc | Bin 0 -> 414 bytes .../contrib/sqlalchemy/plugins/init/__init__.py | 23 +++++++++++++ .../init/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 734 bytes .../init/__pycache__/plugin.cpython-311.pyc | Bin 0 -> 403 bytes .../sqlalchemy/plugins/init/config/__init__.py | 16 +++++++++ .../config/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 720 bytes .../config/__pycache__/asyncio.cpython-311.pyc | Bin 0 -> 1166 bytes .../init/config/__pycache__/common.cpython-311.pyc | Bin 0 -> 684 bytes .../init/config/__pycache__/compat.cpython-311.pyc | Bin 0 -> 1819 bytes .../init/config/__pycache__/engine.cpython-311.pyc | Bin 0 -> 388 bytes .../init/config/__pycache__/sync.cpython-311.pyc | Bin 0 -> 1136 bytes .../sqlalchemy/plugins/init/config/asyncio.py | 24 +++++++++++++ .../sqlalchemy/plugins/init/config/common.py | 15 ++++++++ .../sqlalchemy/plugins/init/config/compat.py | 22 ++++++++++++ .../sqlalchemy/plugins/init/config/engine.py | 5 +++ .../contrib/sqlalchemy/plugins/init/config/sync.py | 24 +++++++++++++ .../contrib/sqlalchemy/plugins/init/plugin.py | 5 +++ .../contrib/sqlalchemy/plugins/serialization.py | 5 +++ .../contrib/sqlalchemy/repository/__init__.py | 11 ++++++ .../__pycache__/__init__.cpython-311.pyc | Bin 0 -> 525 bytes .../repository/__pycache__/_async.cpython-311.pyc | Bin 0 -> 389 bytes .../repository/__pycache__/_sync.cpython-311.pyc | Bin 0 -> 389 bytes .../repository/__pycache__/_util.cpython-311.pyc | Bin 0 -> 446 bytes .../repository/__pycache__/types.cpython-311.pyc | Bin 0 -> 501 bytes .../contrib/sqlalchemy/repository/_async.py | 5 +++ .../contrib/sqlalchemy/repository/_sync.py | 7 ++++ .../contrib/sqlalchemy/repository/_util.py | 8 +++++ .../contrib/sqlalchemy/repository/types.py | 15 ++++++++ .../litestar/contrib/sqlalchemy/types.py | 11 ++++++ 38 files changed, 267 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__init__.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/__init__.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/base.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/dto.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/types.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/base.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/dto.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__init__.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/__init__.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/serialization.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__init__.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/__init__.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/plugin.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__init__.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/__init__.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/asyncio.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/common.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/compat.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/engine.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/sync.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/asyncio.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/common.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/compat.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/engine.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/sync.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/plugin.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/serialization.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__init__.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/__init__.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_async.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_sync.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_util.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/types.cpython-311.pyc create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_async.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_sync.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_util.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/types.py create mode 100644 venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/types.py (limited to 'venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy') diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__init__.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..1b0f40a Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/__init__.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/base.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/base.cpython-311.pyc new file mode 100644 index 0000000..199862b Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/base.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/dto.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/dto.cpython-311.pyc new file mode 100644 index 0000000..5467843 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/dto.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/types.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/types.cpython-311.pyc new file mode 100644 index 0000000..09819d1 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/__pycache__/types.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/base.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/base.py new file mode 100644 index 0000000..9ce9608 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/base.py @@ -0,0 +1,38 @@ +"""Application ORM configuration.""" + +from __future__ import annotations + +try: + # v0.6.0+ + from advanced_alchemy._listeners import touch_updated_timestamp # pyright: ignore +except ImportError: + from advanced_alchemy.base import touch_updated_timestamp # type: ignore[no-redef,attr-defined] + +from advanced_alchemy.base import ( + AuditColumns, + BigIntAuditBase, + BigIntBase, + BigIntPrimaryKey, + CommonTableAttributes, + ModelProtocol, + UUIDAuditBase, + UUIDBase, + UUIDPrimaryKey, + create_registry, + orm_registry, +) + +__all__ = ( + "AuditColumns", + "BigIntAuditBase", + "BigIntBase", + "BigIntPrimaryKey", + "CommonTableAttributes", + "create_registry", + "ModelProtocol", + "touch_updated_timestamp", + "UUIDAuditBase", + "UUIDBase", + "UUIDPrimaryKey", + "orm_registry", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/dto.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/dto.py new file mode 100644 index 0000000..beea75d --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/dto.py @@ -0,0 +1,5 @@ +from __future__ import annotations + +from advanced_alchemy.extensions.litestar.dto import SQLAlchemyDTO, SQLAlchemyDTOConfig + +__all__ = ("SQLAlchemyDTO", "SQLAlchemyDTOConfig") diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__init__.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__init__.py new file mode 100644 index 0000000..5bc913c --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__init__.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +from advanced_alchemy.extensions.litestar.plugins import SQLAlchemyPlugin + +from .init import ( + AsyncSessionConfig, + EngineConfig, + GenericSessionConfig, + GenericSQLAlchemyConfig, + SQLAlchemyAsyncConfig, + SQLAlchemyInitPlugin, + SQLAlchemySyncConfig, + SyncSessionConfig, +) +from .serialization import SQLAlchemySerializationPlugin + +__all__ = ( + "AsyncSessionConfig", + "EngineConfig", + "GenericSQLAlchemyConfig", + "GenericSessionConfig", + "SQLAlchemyAsyncConfig", + "SQLAlchemyInitPlugin", + "SQLAlchemyPlugin", + "SQLAlchemySerializationPlugin", + "SQLAlchemySyncConfig", + "SyncSessionConfig", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..019ff72 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/__init__.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/serialization.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/serialization.cpython-311.pyc new file mode 100644 index 0000000..7bd0360 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/__pycache__/serialization.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__init__.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__init__.py new file mode 100644 index 0000000..2e507c1 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__init__.py @@ -0,0 +1,23 @@ +from __future__ import annotations + +from .config import ( + AsyncSessionConfig, + EngineConfig, + GenericSessionConfig, + GenericSQLAlchemyConfig, + SQLAlchemyAsyncConfig, + SQLAlchemySyncConfig, + SyncSessionConfig, +) +from .plugin import SQLAlchemyInitPlugin + +__all__ = ( + "AsyncSessionConfig", + "EngineConfig", + "GenericSQLAlchemyConfig", + "GenericSessionConfig", + "SQLAlchemyAsyncConfig", + "SQLAlchemyInitPlugin", + "SQLAlchemySyncConfig", + "SyncSessionConfig", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..43da1aa Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/__init__.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/plugin.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/plugin.cpython-311.pyc new file mode 100644 index 0000000..e06ec42 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/__pycache__/plugin.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__init__.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__init__.py new file mode 100644 index 0000000..f2e39da --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__init__.py @@ -0,0 +1,16 @@ +from __future__ import annotations + +from .asyncio import AsyncSessionConfig, SQLAlchemyAsyncConfig +from .common import GenericSessionConfig, GenericSQLAlchemyConfig +from .engine import EngineConfig +from .sync import SQLAlchemySyncConfig, SyncSessionConfig + +__all__ = ( + "AsyncSessionConfig", + "EngineConfig", + "GenericSQLAlchemyConfig", + "GenericSessionConfig", + "SQLAlchemyAsyncConfig", + "SQLAlchemySyncConfig", + "SyncSessionConfig", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..2a316ef Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/__init__.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/asyncio.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/asyncio.cpython-311.pyc new file mode 100644 index 0000000..23fe455 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/asyncio.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/common.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/common.cpython-311.pyc new file mode 100644 index 0000000..6e83a95 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/common.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/compat.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/compat.cpython-311.pyc new file mode 100644 index 0000000..4ba72bb Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/compat.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/engine.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/engine.cpython-311.pyc new file mode 100644 index 0000000..1d4553b Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/engine.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/sync.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/sync.cpython-311.pyc new file mode 100644 index 0000000..d777bb9 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/__pycache__/sync.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/asyncio.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/asyncio.py new file mode 100644 index 0000000..434c761 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/asyncio.py @@ -0,0 +1,24 @@ +from __future__ import annotations + +from advanced_alchemy.config.asyncio import AlembicAsyncConfig, AsyncSessionConfig +from advanced_alchemy.extensions.litestar.plugins.init.config.asyncio import ( + SQLAlchemyAsyncConfig as _SQLAlchemyAsyncConfig, +) +from advanced_alchemy.extensions.litestar.plugins.init.config.asyncio import ( + autocommit_before_send_handler, + default_before_send_handler, +) +from sqlalchemy.ext.asyncio import AsyncEngine + +from litestar.contrib.sqlalchemy.plugins.init.config.compat import _CreateEngineMixin + +__all__ = ( + "SQLAlchemyAsyncConfig", + "AlembicAsyncConfig", + "AsyncSessionConfig", + "default_before_send_handler", + "autocommit_before_send_handler", +) + + +class SQLAlchemyAsyncConfig(_SQLAlchemyAsyncConfig, _CreateEngineMixin[AsyncEngine]): ... diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/common.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/common.py new file mode 100644 index 0000000..9afc48c --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/common.py @@ -0,0 +1,15 @@ +from __future__ import annotations + +from advanced_alchemy.config.common import GenericAlembicConfig, GenericSessionConfig, GenericSQLAlchemyConfig +from advanced_alchemy.extensions.litestar.plugins.init.config.common import ( + SESSION_SCOPE_KEY, + SESSION_TERMINUS_ASGI_EVENTS, +) + +__all__ = ( + "SESSION_SCOPE_KEY", + "SESSION_TERMINUS_ASGI_EVENTS", + "GenericSQLAlchemyConfig", + "GenericSessionConfig", + "GenericAlembicConfig", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/compat.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/compat.py new file mode 100644 index 0000000..d76dea7 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/compat.py @@ -0,0 +1,22 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Generic, Protocol, TypeVar + +from litestar.utils.deprecation import deprecated + +if TYPE_CHECKING: + from sqlalchemy import Engine + from sqlalchemy.ext.asyncio import AsyncEngine + + +EngineT_co = TypeVar("EngineT_co", bound="Engine | AsyncEngine", covariant=True) + + +class HasGetEngine(Protocol[EngineT_co]): + def get_engine(self) -> EngineT_co: ... + + +class _CreateEngineMixin(Generic[EngineT_co]): + @deprecated(version="2.1.1", removal_in="3.0.0", alternative="get_engine()") + def create_engine(self: HasGetEngine[EngineT_co]) -> EngineT_co: + return self.get_engine() diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/engine.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/engine.py new file mode 100644 index 0000000..31c3f5e --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/engine.py @@ -0,0 +1,5 @@ +from __future__ import annotations + +from advanced_alchemy.config.engine import EngineConfig + +__all__ = ("EngineConfig",) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/sync.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/sync.py new file mode 100644 index 0000000..48a029b --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/config/sync.py @@ -0,0 +1,24 @@ +from __future__ import annotations + +from advanced_alchemy.config.sync import AlembicSyncConfig, SyncSessionConfig +from advanced_alchemy.extensions.litestar.plugins.init.config.sync import ( + SQLAlchemySyncConfig as _SQLAlchemySyncConfig, +) +from advanced_alchemy.extensions.litestar.plugins.init.config.sync import ( + autocommit_before_send_handler, + default_before_send_handler, +) +from sqlalchemy import Engine + +from litestar.contrib.sqlalchemy.plugins.init.config.compat import _CreateEngineMixin + +__all__ = ( + "SQLAlchemySyncConfig", + "AlembicSyncConfig", + "SyncSessionConfig", + "default_before_send_handler", + "autocommit_before_send_handler", +) + + +class SQLAlchemySyncConfig(_SQLAlchemySyncConfig, _CreateEngineMixin[Engine]): ... diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/plugin.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/plugin.py new file mode 100644 index 0000000..dbf814b --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/init/plugin.py @@ -0,0 +1,5 @@ +from __future__ import annotations + +from advanced_alchemy.extensions.litestar.plugins import SQLAlchemyInitPlugin + +__all__ = ("SQLAlchemyInitPlugin",) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/serialization.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/serialization.py new file mode 100644 index 0000000..539b194 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/plugins/serialization.py @@ -0,0 +1,5 @@ +from __future__ import annotations + +from advanced_alchemy.extensions.litestar.plugins import SQLAlchemySerializationPlugin + +__all__ = ("SQLAlchemySerializationPlugin",) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__init__.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__init__.py new file mode 100644 index 0000000..64a8359 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__init__.py @@ -0,0 +1,11 @@ +from ._async import SQLAlchemyAsyncRepository +from ._sync import SQLAlchemySyncRepository +from ._util import wrap_sqlalchemy_exception +from .types import ModelT + +__all__ = ( + "SQLAlchemyAsyncRepository", + "SQLAlchemySyncRepository", + "ModelT", + "wrap_sqlalchemy_exception", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..3e6dacf Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/__init__.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_async.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_async.cpython-311.pyc new file mode 100644 index 0000000..461fbad Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_async.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_sync.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_sync.cpython-311.pyc new file mode 100644 index 0000000..bd6d80f Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_sync.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_util.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_util.cpython-311.pyc new file mode 100644 index 0000000..561fd53 Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/_util.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/types.cpython-311.pyc b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/types.cpython-311.pyc new file mode 100644 index 0000000..fa8191e Binary files /dev/null and b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/__pycache__/types.cpython-311.pyc differ diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_async.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_async.py new file mode 100644 index 0000000..417ec35 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_async.py @@ -0,0 +1,5 @@ +from __future__ import annotations + +from advanced_alchemy.repository import SQLAlchemyAsyncRepository + +__all__ = ("SQLAlchemyAsyncRepository",) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_sync.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_sync.py new file mode 100644 index 0000000..58ccbb8 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_sync.py @@ -0,0 +1,7 @@ +# Do not edit this file directly. It has been autogenerated from +# litestar/contrib/sqlalchemy/repository/_async.py +from __future__ import annotations + +from advanced_alchemy.repository import SQLAlchemySyncRepository + +__all__ = ("SQLAlchemySyncRepository",) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_util.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_util.py new file mode 100644 index 0000000..c0ce747 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/_util.py @@ -0,0 +1,8 @@ +from __future__ import annotations + +from advanced_alchemy.repository._util import get_instrumented_attr, wrap_sqlalchemy_exception + +__all__ = ( + "wrap_sqlalchemy_exception", + "get_instrumented_attr", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/types.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/types.py new file mode 100644 index 0000000..2a4204c --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/repository/types.py @@ -0,0 +1,15 @@ +from advanced_alchemy.repository.typing import ( + ModelT, + RowT, + SelectT, + SQLAlchemyAsyncRepositoryT, + SQLAlchemySyncRepositoryT, +) + +__all__ = ( + "ModelT", + "SelectT", + "RowT", + "SQLAlchemySyncRepositoryT", + "SQLAlchemyAsyncRepositoryT", +) diff --git a/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/types.py b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/types.py new file mode 100644 index 0000000..61fb75a --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/contrib/sqlalchemy/types.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from advanced_alchemy.types import GUID, ORA_JSONB, BigIntIdentity, DateTimeUTC, JsonB + +__all__ = ( + "GUID", + "ORA_JSONB", + "DateTimeUTC", + "BigIntIdentity", + "JsonB", +) -- cgit v1.2.3