Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

add Field db=False flag #14

Closed Jaymon closed 1 year ago

Jaymon commented 8 years ago

this will cause a a field that is passed into __init__() or modify() to be set into the class instance, but not persisted to the db. That way it can go through all the normal Field validation stuff like the normalize method if needs be, but it ultimately won't be a field in the db.

Jaymon commented 1 year ago

I'm not sure this is the solution I would want to implement for this problem. It would involve a lot of refactoring since everything expects Field instances to be db fields and I'm not sure it's worth the hassle for something I don't that often and when I do do it I can usually solve it a different way