Try using classname
and subprotocol
attributes:
(def db-config {:classname "com.informix.jdbc.IfxDriver"
:subprotocol "informix-sqli"
:subname (format "//%s:1533/%s"
"123.45.67.89"
"testDB:INFORMIXSERVER=myserver")
:user "user"
:password "password"})
(defdb db db-config)
Take a look at the different definitions in the source code, postgres
is just a shorthand for those attributes. Even if there's no informix
predefined function you can roll your own.
According to this doc driver name is com.informix.jdbc.IfxDriver
, you can also check there for database URIs:
The following example shows a database URL that connects
to a database called testDB:
jdbc:informix-sqli://123.45.67.89:1533/testDB:INFORMIXSERVER=myserver;
user=rdtest;password-test
Also remember to add the proper dependency information to your project.clj
file:
:dependencies [...
[com.informix.jdbc/com.springsource.com.informix.jdbc "3.0.0.JC3"]
...
And the springsource repositories for that dependency to be found:
:repositories [["springsource-release" "http://repository.springsource.com/maven/bundles/release"]
["springsource-external" "http://repository.springsource.com/maven/bundles/external"]]