diff --git a/models/__init__.py b/models/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/requirements.txt b/requirements.txt index 7a934a4..45e6eb9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ loguru -aiogram \ No newline at end of file +aiogram +asyncpg \ No newline at end of file diff --git a/services/repository.py b/services/repository.py index fe725db..6bf0d1a 100644 --- a/services/repository.py +++ b/services/repository.py @@ -1,5 +1,8 @@ +from asyncpg.connection import Connection + + class Repo: """Db abstraction layer""" - def __init__(self): - pass + def __init__(self, conn: Connection): + self.conn = conn