Java Client for jsqldb
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
src
LICENSE
README.md
jsqldb-client.iml
pom.xml

README.md

jsqldb-java-client

Java Client for jsqldb https://jsqldb.org

Sample usage

       	JSQLDBClient jsqldbcl = new JSQLDBClient("localhost");
        try(JSQLDBConnection conn = jsqldbcl.Connect()) {

            conn.r("dbadmin.createdb('javatest');");

            conn.r("javatest.s = 'hello'");

            System.out.println("result=" + conn.rs("javatest.s"));

            conn.r("javatest.o = { hello: \"world\" }");

            JsonElement res = conn.r("javatest.o");

            Gson g = new Gson();
            System.out.println("objval=" + res.getAsJsonObject().get("hello"));
            System.out.println(g.toJson(res))

        }
        catch(Exception e) {
            System.out.println("EXCEPTION: "+e.getMessage());
        }