Jaymon / prom

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

QueryField class #20

Closed Jaymon closed 8 years ago

Jaymon commented 8 years ago

so Query classes have to have Interface instances, and those interface instances know what type of interface they are (eg, SQLiteInterface) so they could have a field_class on them that the query builder could use to set values, then those query field classes could generate the SQL instead of having all the crazy create SQL code

Likewise you could have clause classes, like SelectClause, WhereClause, and SortClause that could also be set and attach QueryField classes

This would help with the new caching stuff I'm adding also

Jaymon commented 8 years ago

I went down this direction and it turns out I didn't like it