Skip to content

Commit

Permalink
모델-스키마 매핑 함수 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
qodot committed Sep 18, 2023
1 parent 8d11ab3 commit 520762c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/infra/db/mapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from sqlalchemy.orm import registry

from src.domain.entity.calendar import Calendar
from src.infra.db.schema import calendar


def map_between_model_and_schema():
mapper_registry = registry()
mapper_registry.map_imperatively(Calendar, calendar)

0 comments on commit 520762c

Please sign in to comment.