Skip to content

Commit 0b303bd

Browse files
committed
Move DB to the DB layer
1 parent 3b25bf4 commit 0b303bd

File tree

78 files changed

+67
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+67
-67
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
omit =
33
*/__main__.py
44
futuramaapi/workers/_dramatiq/_runner.py
5-
futuramaapi/repositories/migrations/*
5+
futuramaapi/db/migrations/*
66
futuramaapi/web_servers/hypercorn.py
77

88
[report]

alembic.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[alembic]
44
# path to migration scripts
5-
script_location = futuramaapi/repositories/migrations
5+
script_location = futuramaapi/db/migrations
66

77
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
88
# Uncomment the line below if you want the files to be prepended with date and time

futuramaapi/apps/fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
from futuramaapi.__version__ import __version__
1414
from futuramaapi.core import feature_flags, settings
15+
from futuramaapi.db.session import session_manager
1516
from futuramaapi.middlewares.cors import CORSMiddleware
1617
from futuramaapi.middlewares.counter import APIRequestsCounter
1718
from futuramaapi.middlewares.secure import HTTPSRedirectMiddleware
18-
from futuramaapi.repositories.session import session_manager
1919
from futuramaapi.utils import metadata
2020

2121
if TYPE_CHECKING:
File renamed without changes.
File renamed without changes.

futuramaapi/repositories/migrations/env.py renamed to futuramaapi/db/migrations/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from sqlalchemy.ext.asyncio import async_engine_from_config
88

99
from futuramaapi.core import settings
10-
from futuramaapi.repositories import (
10+
from futuramaapi.db import (
1111
Base,
1212
models, # noqa: F401, do not remove.
1313
)
File renamed without changes.

futuramaapi/repositories/migrations/versions/1353be8a56b8_initial_project_structure.py renamed to futuramaapi/db/migrations/versions/1353be8a56b8_initial_project_structure.py

File renamed without changes.

0 commit comments

Comments
 (0)