Skip to content

Conversation

jgrazina
Copy link
Contributor

@jgrazina jgrazina commented Oct 7, 2025

alias should be first class citizens in a Row object, as this one gets all the alias with the different transformations of columns in select.
This allows for this type of select:

db(db.my_table.id > 0).select(db.my_table.my_date.year().with_alias('year'), ...)

To be processed at the row level like this:

if 'year' in row:
    print('in the year 2000....')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant