Jaymon / prom

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

Should Query magic method parser support sql function names? #185

Open Jaymon opened 5 months ago

Jaymon commented 5 months ago

Would it be worth being able to do something like this:

SomeOrm.query.select_max_field_name

Which would result in:

SELECT MAX(field_name) ...

Basically make the magic method parser support this format

<METHOD-TYPE>[_<FUNCTION-NAME>]_<FIELD-NAME>