HackerTrans
TopNewTrendsCommentsPastAskShowJobs

unculture

no profile record

comments

unculture
·3 miesiące temu·discuss
The tool is open source. If it bothers you, fork it and remove the line in the prompt.
unculture
·w zeszłym roku·discuss
SQLModel is supposed to be the best of both Pydantic and SQLAlchemy, but by design an SQLModel entity backed by a database table doesn't validate its fields on creation, which is the point of Pydantic.

https://github.com/fastapi/sqlmodel/issues/52#issuecomment-1...
unculture
·w zeszłym roku·discuss
Repository pattern is useful if you really feel like you're going to need to switch out your database layer for something else at some point in the future, but I've literally never seen this happen in my career ever. Otherwise, it's just duplicate code you have to write.