어떻게 적재하는지 또는 어떻게 영속화하는지에 대해 알 필요가 없다는 의미다. 영속성 무지가
성립하면 특정 데이터베이스 기술에 도메인이 직접 의존하지 않도록 유지할 수 있다.
4
하지만 전형적인
SQLAlchemy
튜토리얼을 따르면 다음과 같은 코드를 마주하게 된다.
SQLAlchemy
‘선언적’ 문법, 모델은
ORM
에 의존(
orm
.
py
)
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.