The current connectable or connection. If you get a connection with with-connection
or with-transaction
, it
will be bound here. You can also bind this yourself to a connectable or connection, and Toucan methods called without
an explicit will connectable will use it rather than the :default
connection.
The current connectable or connection. If you get a connection with [[with-connection]] or [[with-transaction]], it will be bound here. You can also bind this yourself to a connectable or connection, and Toucan methods called without an explicit will connectable will use it rather than the `:default` connection.
(connection-string-protocol connection-string)
Extract the protocol part of a connection-string
.
(connection-string-protocol "jdbc:postgresql:...") => "jdbc"
Extract the protocol part of a `connection-string`. (connection-string-protocol "jdbc:postgresql:...") => "jdbc"
(do-with-connection connectable f)
(do-with-connection-string connection-string f)
(do-with-transaction connection f)
(with-connection [connection-binding connectable] & body)
(with-connection [connection-binding connectable] & body)
(with-transaction [conn-binding connectable] & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close