v0.5.0
Table Query Language.
SQL like query language for csv files.
You will need the latest version of python installed in your computer. Clone the github repo and then run
python main.py
To exit the client use Ctrl + C
Syntax:
load [filename]
Parameters:
- filename : The name of the csv file to load without the
.csv
extension. Rember this file should exist in the same directory as that ofmain.py
file.
Syntax
save [filename]
Parameters
- filename : Filename to save as.
Syntax
in [columns] [operation] [conditions]
Parameters
- columns : Column names separated by ,
- operation: See Supported operations for a list of operations and their function.
- conditions: See Supported conditions for a list of conditions.
Displays the result data in a neat table.
Outputs the count of records in result data.
Selects all the records
Selects all records greater than the given integer value in the given column.
Example:
in Rank,Country select Rank<25
Selects all records less than the given integer value in the given column
Example
in Rank,Country select Rank>36
Selects all records equals to the given integer value.
Selects records not equal to a given value. Works like !=
.
Selects records that starts with given string.
Example:
in Rank,Country select %B
Selects all country names that starts with B
Selects records that ends with given string.
Example:
in Rank,Country select _a
Selects all country names that ends with a