by Duck Man » Thu Jan 24, 2008 3:11 pm
I made this for two of my programs and wished I did for all my sql programs. Its just for mysql right now... but that could be changed pretty easy I think. So for my sql you will need MYSQL Connector/J for this to work. Get it
HERE. Feel free to use this and modify it what ever way you want to. The cool thing is it automatically handles reconnecting to a db if get disconnected. It was funny, originally I had it in a loop so it just kept trying to reconnect until it succeeded. But if u fucked up the connect statement then it would just be stuck... lol. So only one try after a fail now.
- Attachments
-
SQLWrapper.java
- A Wrapper class for MYSQL
- (2.18 KiB) Downloaded 60 times
"To resist is to piss in the wind, anyone who does will end up smelling." - Incubus