4 ms·
Absolutely! I think it should be doable, FastAPI and other libraries do heavy Pydantic model inspection, and some do automatic code generation. I should explore
by polyrand 6y ago
Absolutely! I think it should be doable, FastAPI and other libraries do heavy Pydantic model inspection, and some do automatic code generation. I should explore this a bit more.
- BiteCode_dev 6y agoIt also has some nice properties: - because you have all your queries written in the same place, when you create a db migration, you know where to look for code to update, and can even perform some automatically. - sql queries could be turned into a stored procedure with a simple marking, without changing any code. Of course the downside is that dynamically exploring data is not as easy as with an ORM.