News for hackers. Stuff that matters.
Re:SQLModel – SQL Databases in FastAPI by hangonhn on Tuesday August 24, 2021 @05:36PM (#28295311)
Does it work outside of FastAPI or is it tied to it? We sort of shoved SQLAlchemy into Starlette (which FastAPI also uses) and it would be great if this library also works with Starlette. Thanks!
Re:SQLModel – SQL Databases in FastAPI by tiangolo on Tuesday August 24, 2021 @06:09PM (#28295595)
Yes of course! It is based on (and depends on) SQLAlchemy and Pydantic.

And SQLModel, the same as those two dependencies, are independent of any framework, so you can combine them with anything you need.

Re:SQLModel – SQL Databases in FastAPI by hangonhn on Tuesday August 24, 2021 @06:19PM (#28295692)
Thanks! This could potentially save us a ton of work! Really appreciate all the amazing work you've done. FastAPI definitely being put to good use at my company.