I am trying to add timeout to jdbc/query
and jdbc/execute!
. Somewhere in the web I found that both functions take :timeout
as an option. Documention also says the options are passed to prepare-statment
which takes in :timeout
as an option.
My function calls look like,
(jdbc/query db-read-spec query {:timeout 2000})
(jdbc/execute! db-write-spec query {:timeout 2000})
Is this how it is done? If yes, How do I test this?
If there is different way of doing this which is testable, that works too.
Aucun commentaire:
Enregistrer un commentaire