Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use jdbc/find-connection ? #1

Closed
ghost opened this issue Oct 6, 2011 · 1 comment
Closed

use jdbc/find-connection ? #1

ghost opened this issue Oct 6, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 6, 2011

improvement ?

see: http://boss-level.com/?p=96, http://gist.github.com/1177043

"Explicit connections prevent composition. So wrap all db functions in
a fn that checks if a connection exists, and only if not does it make one
that way the outermost fn that needs a db creates the connection and those
internal use it."

maybe the link could also be helpful for adding basic transaction-management.

@ibdknox
Copy link
Member

ibdknox commented Nov 7, 2011

I did this one better by using c3p0 for connection pooling.

@ibdknox ibdknox closed this as completed Nov 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant