This is an unofficial EdgeDB driver for JAVA ecosystem.
This project is far from production ready. We need your support, feel free to contribute !
public String queryOneJSON(String query)
public <T> T queryOneJSON(String query,Class<T> classType)
public String queryJSON(String query)
public <T> List<T> queryJSON(String query, Class<T> classType)
Execute(String command)
package edgedb.client;
import edgedb.exceptions.FailedToConnectEdgeDBServer;
import edgedb.exceptions.FailedToDecodeServerResponseException;
import java.io.IOException;
public class ReadMeExample {
public static void main(String[] args) {
String dsn = "edgedb://edgedb@localhost:5656/tutorial";
EdgeDBClient db = new EdgeDBClient().withDSN(dsn);
try {
db.connect();
String jsonResult = db.execute("SELECT Movie { id, title}");
System.out.Println(result);
db.terminate();
} catch (FailedToDecodeServerResponseException |FailedToConnectEdgeDBServer| IOException e) {
e.printStackTrace();
}
}
}
- Fork the repo and create your branch from main.
- If you've added code that should be tested, add tests.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
View CONTRIBUTING.md to learn more about how to contribute.
edgedb-java is developed and distributed under the Apache 2.0 license.