A easy way to use SQL on Java. Create new connections and easy queries.
Database database = Provider.getInstance().submitSqlLite(path);
Database database = Provider.getInstance().submitMySql(host, url, user, password);
Database database = Provider.getInstance().submitHikari(host, url, user, password);
Database#update(new TableQuery()
.name("users", true)
.fields(new TableField()
.name("id")
.type("int")
.size(8)
.autoIncrement())
.primary("id"));
database.updateSync(new Query().insert("users", 1, "eike"));
List<Object> data = database.querySync(new Query()
.select("id", "name")
.from("users"));
database.querySync(new Query()
.delete()
.from("users")
.where("id", 1));
And others examples you may get on QueriesTest.java
file, on test folder.