The JDBC driver is a separated open source project. You can find it at https://github.com/nuvolabase/orientdb-jdbc and it is maintained by the same team that developed the OrientDB engine. Currently, the JAR file can be downloaded at the typesafe maven
repository which is located in http://repo.typesafe.com/typesafe/snapshots/com/orientechnologies/orientdb-jdbc/1.0-SNAPSHOT/.
To use the driver, you must deploy its JAR file in CLASSPATH
. After this step, you can use it like any other JDBC driver to execute SQL queries and commands. For example:
/* declare admin credentials */ Properties credentials = new Properties(); credentials.put("user", "admin"); credentials.put("password", "newadminpass"); /* obtain a connection */ Connection conn = (OrientJdbcConnection) DriverManager.getConnection("jdbc:orient:remote:localhost/minimalblog", credentials); /* perform a query */ Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT title, text, pubDate...