Skip to content

Commit

Permalink
Bump to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
raymank26 committed Jul 16, 2019
1 parent 190e88f commit b10de2f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
The application provides REPL with SQL-like language to query CSV located in filesystem.

## Installation

MacOS
```
brew install raymank26/tools/csvsh
```

## Usage

```csvsh --help
Expand Down Expand Up @@ -35,6 +42,26 @@ csvsh>> SELECT * FROM '/test/input.csv' WHERE a IN ('bazz', 'баз') AND c IN (
╚══════╧══════╧══════╝
```

3. More complicated query with `GROUP BY`, `ORDER BY`, `LIMIT`

```
csvsh>> SELECT city, COUNT(*) FROM '/test/input2.csv' GROUP BY city WHERE city <> '' ORDER BY city LIMIT 5
╔══════════════╤══════════╗
║ city │ count(*) ║
╠══════════════╪══════════╣
║ Acton │ 3 ║
╟──────────────┼──────────╢
║ Agoura Hills │ 2 ║
╟──────────────┼──────────╢
║ Alameda │ 1 ║
╟──────────────┼──────────╢
║ Albuquerque │ 3 ║
╟──────────────┼──────────╢
║ Aliso Viejo │ 2 ║
╚══════════════╧══════════╝
```

## Features

- [x] `SELECT` query with `GROUP BY`, `ORDER BY` and `LIMIT` statements.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ tasks.generateGrammarSource {
arguments = arguments + listOf("-visitor", "-long-messages", "-package", "com.github.raymank26.csvsh.sql")
}

version = "0.0.1"
version = "0.0.2"

val copyVersionToResources = tasks.create("copyVersionToResources") {
doLast {
Expand Down

0 comments on commit b10de2f

Please sign in to comment.