diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e7ff5a..c19506a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Only accretive/fixative changes will be made from now on. * 1.3.next in progress + * Address [#288](https://github.com/seancorfield/next-jdbc/issues/288) by adding speculative support for `:dbtype "xtdb"`. * Fix [#287](https://github.com/seancorfield/next-jdbc/issues/287) by merging user-supplied options over `:return-keys true`. * Fix [#282](https://github.com/seancorfield/next-jdbc/issues/282) by tracking raw `Connection` objects for active TXs, which relaxes several of the conditions around nested transactions. diff --git a/src/next/jdbc.clj b/src/next/jdbc.clj index 8eabc2c..ab27c5f 100644 --- a/src/next/jdbc.clj +++ b/src/next/jdbc.clj @@ -137,6 +137,7 @@ * `sqlserver`, `mssql` -- `com.microsoft.sqlserver.jdbc.SQLServerDriver` -- `1433` * `timesten:client` -- `com.timesten.jdbc.TimesTenClientDriver` * `timesten:direct` -- `com.timesten.jdbc.TimesTenDriver` + * `xtdb` -- `xtdb.jdbc.Driver` -- an XTDB wrapper around `postgresql` For more details about `:dbtype` and `:classname` values, see: https://cljdoc.org/d/com.github.seancorfield/next.jdbc/CURRENT/api/next.jdbc.connection#dbtypes" diff --git a/src/next/jdbc/connection.clj b/src/next/jdbc/connection.clj index 0223b1a..a7cf0b5 100644 --- a/src/next/jdbc/connection.clj +++ b/src/next/jdbc/connection.clj @@ -130,7 +130,9 @@ :host :none} "timesten:direct" {:classname "com.timesten.jdbc.TimesTenDriver" :dbname-separator ":dsn=" - :host :none}}) + :host :none} + "xtdb" {:classname "xtdb.jdbc.Driver" + :port 5432}}) (def ^:private driver-cache "An optimization for repeated calls to get-datasource, or for get-connection