pypika icon indicating copy to clipboard operation
pypika copied to clipboard

Add support for alias syntactic sugar in select by using kwargs

Open thegreymatter opened this issue 2 years ago • 0 comments

Added a nice and useful syntactic sugar for select, allowing to define field alias by employing kwars parameter names

i.e. instead of - select(table.foo.as_("bar")) you can write -
select(bar=table.foo)

the change is of course backward compatible. solves #681

thegreymatter avatar Apr 24 '22 20:04 thegreymatter