Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmafo committed Dec 13, 2020
1 parent 388cde9 commit 7b6b254
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Bigtable viewer is an application that lets you query the contents of Google Big
## Installation

Download and run the [installer](https://github.com/erikmafo/BigtableViewer/releases/latest)
for your operating system
for your operating system.

## Basic Usage

Expand Down Expand Up @@ -41,7 +41,7 @@ SELECT * FROM 'table-0' WHERE myFamily.myStringColumn = 'foo' LIMIT 1000
```
Use 'AND' to combine filters:
```sql
SELECT * FROM 'table-0' WHERE KEY LIKE 'rowkey' AND myFamily.myStringColumn = 'foo' LIMIT 1000
SELECT * FROM 'table-0' WHERE KEY LIKE 'rowkey.*' AND myFamily.myStringColumn = 'foo' LIMIT 1000
```
Only select data from a specific column family:
```sql
Expand All @@ -51,6 +51,10 @@ or a list of columns:
```sql
SELECT myFamily.column1, myFamily.column2 FROM 'table-0' LIMIT 1000
```
Filter data based on the cell timestamp:
```sql
SELECT * FROM 'table-0' WHERE TIMESTAMP < '2020-12-13 12:54' LIMIT 1000
```
To work with reverse row keys, use the built-in REVERSE function:
```sql
SELECT * FROM 'table-0' WHERE KEY LIKE REVERSE('yekwor') LIMIT 1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private static String getStyleClass(SqlToken token) {
case "FROM":
case "LIMIT":
case "KEY":
case "TIMESTAMP":
return KEYWORD_STYLE_CLASS;
case "AND":
return OPERATOR_STYLE_CLASS;
Expand Down

0 comments on commit 7b6b254

Please sign in to comment.