dcmoura / spyql

Query data on the command line with SQL-like SELECTs powered by Python expressions
https://spyql.readthedocs.io
MIT License
918 stars 25 forks source link

Support for line comments #84

Closed dcmoura closed 1 year ago

dcmoura commented 1 year ago

Use # to make line comments. This is particularly useful when using spyql lib in Python scripts.

e.g.

Query("""
  SELECT
    col1,  # this is the first column
    col1*2
    # col2  # this line is commented
  FROM
    range(10)  # generates 10 lines, with col1 ranging from 0 to 9
""")()