Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

db/def*, db/query, db/execute! should cache their PreparedStatement #6

Open
coconutpalm opened this issue Sep 2, 2016 · 0 comments

Comments

@coconutpalm
Copy link
Contributor

Create an internal sql-fn API that accepts the ::SQL-FN, current connection, and PreparedStatement and returns a closure over atoms containing the connection and PreparedStatement. When this function is executed it should reuse the PreparedStatement from prior invocations if the connection is still the same.

Then update defquery, defstatement, query, and execute! to use this helper.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant