Jaymon / prom

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

config.Field index flag #114

Closed Jaymon closed 2 years ago

Jaymon commented 4 years ago

I think you should be able to do:

foo = Field(str, True, index=True)

which would be equivalent to:

foo = Field(str, True)
foo_index = Index("foo")

And would be similar to unique=True which already exists