GithubHelp home page GithubHelp logo

tql's Introduction

TQL

v0.5.0

Table Query Language.

SQL like query language for csv files.

Getting started

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

Commands

load

Syntax:

load [filename]

Parameters:

  1. filename : The name of the csv file to load without the .csv extension. Rember this file should exist in the same directory as that of main.py file.

save

Syntax

save [filename]

Parameters

  1. filename : Filename to save as.

In

Syntax

in [columns] [operation] [conditions]

Parameters

  1. columns : Column names separated by ,
  2. operation: See Supported operations for a list of operations and their function.
  3. conditions: See Supported conditions for a list of conditions.

Supported operations

select

Displays the result data in a neat table.

count

Outputs the count of records in result data.

Supported conditions

* operator

Selects all the records

< operator

Selects all records greater than the given integer value in the given column.

Example:

in Rank,Country select Rank<25

> operator

Selects all records less than the given integer value in the given column

Example

in Rank,Country select Rank>36

= operator

Selects all records equals to the given integer value.

# operator

Selects records not equal to a given value. Works like !=.

% operator

Selects records that starts with given string.

Example:

in Rank,Country select %B

Selects all country names that starts with B

_ operator

Selects records that ends with given string.

Example:

in Rank,Country select _a

Selects all country names that ends with a

tql's People

Contributors

sachin-sankar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.