noamtamir / atlas-provider-sqlalchemy

Atlas provider for sqlalchemy
3 stars 0 forks source link

Is there any easy way to support SQLModel? #1

Open Adrian-Samuel opened 7 months ago

Adrian-Samuel commented 7 months ago

Since SQLModel is an abstraction layer on top of SQLAlchemy, is there an easy way to adapt this provider to also support sqlmodel?

noamtamir commented 7 months ago

This project is a draft. Please use the official version here: https://github.com/ariga/atlas-provider-sqlalchemy . You can also ask questions in their discord, they are very responsive: https://atlasgo.io/

To address your question, I haven't tested it with SQLModel, but I believe it should work our of the box, as long as SQLModel uses the same DeclarativeBase under the hood (which I believe it does).