Jaymon / prom

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

config.Field empty=False #116

Closed Jaymon closed 1 year ago

Jaymon commented 4 years ago

Right now, you can specify if a value needs to be there, but not where that value can be empty or not, so something like:

foo = Field(str, True)

means that foo would need to be present, but foo="" would be valid. But something like:

foo = Field(str, True, empty=False)

would be handy because it could raise an error if foo="".