refactor: migrate to keyword-based repository config, add nested transactions and tests
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
from pydantic_filters import (
|
||||
BaseFilter,
|
||||
BasePagination,
|
||||
BaseSort,
|
||||
OffsetPagination,
|
||||
PagePagination,
|
||||
)
|
||||
from sqlmodel import Field, Relationship
|
||||
|
||||
from .container import RepositoriesContainer
|
||||
from .exceptions import (
|
||||
AlreadyExistsError,
|
||||
@@ -6,10 +15,19 @@ from .exceptions import (
|
||||
NotFoundError,
|
||||
)
|
||||
from .repositories import BaseRepository
|
||||
from .settings import DatabaseSettings
|
||||
from .settings import RepositorySettings
|
||||
from .tables import BaseTable
|
||||
|
||||
__all__ = (
|
||||
# pydantic-filters
|
||||
"BaseFilter",
|
||||
"BasePagination",
|
||||
"BaseSort",
|
||||
"OffsetPagination",
|
||||
"PagePagination",
|
||||
# sqlmodel
|
||||
"Field",
|
||||
"Relationship",
|
||||
# container
|
||||
"RepositoriesContainer",
|
||||
# exceptions
|
||||
@@ -20,7 +38,7 @@ __all__ = (
|
||||
# repositories
|
||||
"BaseRepository",
|
||||
# settings
|
||||
"DatabaseSettings",
|
||||
"RepositorySettings",
|
||||
# tables
|
||||
"BaseTable",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user