There are 131 issues on pyDAL-GitHub, but the problem is not in the amount but in that more than half of them without any response. Look at peewee that has 7.5k stars and only 2 open issues!... yes, this is impolite comparision - sorry.
and I wasted 2 days to figure out how I can do very simple thing like '1 AS foo' in right way that is (as I suppose):
Expression(db, '1', type='integer').with_alias('foo')
So, the question is: why is there nothing about that in the book?
Why does pyDAL have no that very simple but very necessary method which allows to do cool things like:
db(...).select(
...,
db.exp(
'max(product.price) OVER(PARTITION BY product.category)',
type = 'decimal(n, m)' # the same as Field(..., type = 'decimal(n, m)')
).with_alias('most_expensive_in_category')
)
here is used WINDOW-function that allows to get products list with 'most_expensive_in_category' in one plain query
without using subquery with GRUOP BY product.category + join
it hangs for almost a year - it is just a book, not code
I'm sad