DB
Drivers & Protocol

JDBC

Connect to NYXDB from the JVM over the wire protocol.

A JDBC driver lives under drivers/jdbc. It speaks the same wire protocol as the CLI: a framed request carries the SQL, and the response is a TSV result block.

// TODO-verify: exact JDBC URL scheme, driver class, and Maven/Gradle coordinates.
// The driver connects to the same host:port as the CLI (dev default 7510,
// container default 7777) and parses the TSV result payload into a ResultSet.
Connection conn = DriverManager.getConnection("jdbc:nyxdb://127.0.0.1:7777/");
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery("SELECT market, amount FROM trades WHERE amount > 1000");

TODO-verify: the JDBC driver's connection-URL format, registered driver class name, streaming-result support, and packaging. Confirm against drivers/jdbc for your release.