mechatroner / RBQL

🦜RBQL - Rainbow Query Language: SQL-like query engine for (not only) CSV file processing. Supports SQL queries with Python and JavaScript expressions.
https://rbql.org
MIT License
281 stars 13 forks source link

Retain column names in query result #31

Closed mechatroner closed 3 years ago

mechatroner commented 3 years ago

Perhaps it is possible to utilize ast module in python and write a custom parsing function for JS to make RBQL understand how many columns are in the select queries and retain column names for those that haven't been changed. E.g. for this query SELECT a1, a2 + " foo", a5 we can retain column names from columns 1 and 5.

mechatroner commented 3 years ago

The prototype code is in development in the deeper_parse branch

mechatroner commented 3 years ago

Done