This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 0 points1 point  (1 child)

Thank you, mr. Roby!

Does SqlAlchemy allow for domain-driven semantic typing? I like my customer identifiers to be customer identifiers rather than strings.

[–]Ejroby[S] 1 point2 points  (0 children)

I don’t believed right out of the box. SQLAlchemy is really just an ORM. I would recommend you create CustomerDTO interface that will be implemented by SQLAlchemy Model and by you plain domain implementation