sfpprxy / sqall

SQL interface for databases that do not use SQL ;)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQalL

Quick start

// 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      |
+----+----------+---------+------+---------+

About

SQL interface for databases that do not use SQL ;)


Languages

Language:Java 100.0%