Liking cljdoc? Tell your friends :D

toucan2.connection


*current-connectable*clj

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.
sourceraw docstring

connection-string-protocolclj

(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"
sourceraw docstring

do-with-connectionclj

(do-with-connection connectable f)
source

do-with-connection-stringclj

(do-with-connection-string connection-string f)
source

do-with-transactionclj

(do-with-transaction connection f)
source

with-connectioncljmacro

(with-connection [connection-binding connectable] & body)
(with-connection [connection-binding connectable] & body)
source

with-transactioncljmacro

(with-transaction [conn-binding connectable] & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close