// Query from local elasticsearch
public static void main(String[] args) {
SQall client = new SQElasticsearch();
client.connect("127.0.0.1");
client.query("SELECT * FROM customer WHERE age < 41")
.get()
.asTable()
.prettyPrint();
}
// Console result
+----+----------+---------+------+---------+
| id | name | sex | age | country |
+----+----------+---------+------+---------+
| 1 | Anders | male | 33 | USA |
| 2 | Chen | female | 16 | CN |
| 3 | Wang | male | 25 | CN |
| 4 | Alfreds | male | 40 | USA |
| 5 | Zhou | female | 21 | CN |
+----+----------+---------+------+---------+
-
Notifications
You must be signed in to change notification settings - Fork 0
sfpprxy/sqall
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
SQL interface for databases that do not use SQL ;)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published