Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from bson import ObjectId
from typing import final

from py_mf_data.connections.motor import AsyncMotor
from py_mf_data.errors import NotFoundException
from pymfdata.mongodb.connection import AsyncMotor
from pymfdata.common.errors import NotFoundException


class AsyncRepository(ABC):
Expand Down
Empty file added pymfdata/rdb/__init__.py
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from sqlalchemy.orm import Session, Query
from sqlalchemy.sql.selectable import Select

from py_mf_data.connections.sqlalchemy import Base
from py_mf_data.errors import NotFoundException
from pymfdata.rdb.connection import Base
from pymfdata.common.errors import NotFoundException

ModelType = TypeVar("ModelType", bound=Base)

Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool.poetry]
name = "fastapi-data"
name = "python-mf-data"
version = "0.1.0"
description = ""
authors = ["Neon K.I.D <contact@neonkid.xyz>"]
packages = [
{ include = "pymfdata" }
]

[tool.poetry.dependencies]
python = "^3.8"
Expand All @@ -14,7 +17,7 @@ pytest = "^6.2.4"

[tool.poetry.extras]
mongodb = ["motor"]
sql = ["SQLAlchemy"]
rdb = ["SQLAlchemy"]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down