diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a70532..cfdf8bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Only accretive/fixative changes will be made from now on. The following changes have been committed to the **master** branch since the 1.0.1 release: +* Fix #45 by adding TimesTen driver support. * Fix #42 by adding specs for `execute-batch!` and `set-parameters` in `next.jdbc.prepare`. * Fix #41 by improving docstrings and documentation, especially around prepared statement handling. * Fix #40 by adding `next.jdbc.prepare/execute-batch!`. diff --git a/src/next/jdbc.clj b/src/next/jdbc.clj index cc4c436..75eba04 100644 --- a/src/next/jdbc.clj +++ b/src/next/jdbc.clj @@ -86,7 +86,9 @@ * `pgsql` -- `com.impossibl.postgres.jdbc.PGDriver` -- no default port * `redshift` -- `com.amazon.redshift.jdbc.Driver` -- no default port * `sqlite` -- `org.sqlite.JDBC` - * `sqlserver`, `mssql` -- `com.microsoft.sqlserver.jdbc.SQLServerDriver` -- `1433`" + * `sqlserver`, `mssql` -- `com.microsoft.sqlserver.jdbc.SQLServerDriver` -- `1433` + * `timesten:client` -- `com.timesten.jdbc.TimesTenClientDriver` + * `timesten:direct` -- `com.timesten.jdbc.TimesTenDriver`" ^javax.sql.DataSource [spec] (p/get-datasource spec)) diff --git a/src/next/jdbc/connection.clj b/src/next/jdbc/connection.clj index 69460dc..8f2600f 100644 --- a/src/next/jdbc/connection.clj +++ b/src/next/jdbc/connection.clj @@ -30,7 +30,9 @@ "pgsql" "com.impossibl.postgres.jdbc.PGDriver" "redshift" "com.amazon.redshift.jdbc.Driver" "sqlite" "org.sqlite.JDBC" - "sqlserver" "com.microsoft.sqlserver.jdbc.SQLServerDriver"}) + "sqlserver" "com.microsoft.sqlserver.jdbc.SQLServerDriver" + "timesten:client" "com.timesten.jdbc.TimesTenClientDriver" + "timesten:direct" "com.timesten.jdbc.TimesTenDriver"}) (def ^:private aliases "Map of schemes to subprotocols. Used to provide aliases for `:dbtype`." @@ -61,7 +63,8 @@ "Map of schemes to separators. The default is `/` but a couple are different." {"mssql" ";DATABASENAME=" "sqlserver" ";DATABASENAME=" - "oracle:sid" ":"}) + "oracle:sid" ":" + "timesten:direct" ":dsn="}) (def dbtypes "A map of all known database types (including aliases) to the class name(s)