Hmmm, Ok, I'm not using a web server for this part of the project, it's just a thick client talking to a database, but let me see if I've got this correct.
In the main menu start of my program I need to have a
public pool as connectionpool
Then initialize it. Q: Can it be initialized with either mySql or Sqlite?
Once initialized, and set with a higher pool limit, I create the sql object with
dim sq as sql = main.pool.getconnection
at that point, the SQ is just like my current main.SQL object I'm using now. I can create/end transactions, and do whatever I need to do with it in the short span I need it, then close it with SQ.Close to return it to the pool. Q: Should it be kept open for just that transaction set, or as long as the form is open? is there a standard?
So if I go to request a connection from the pool and the application has lost it's connection to the database, it'll reconnect automagically? Or is it something I have to check and do a reconnect in my code?
Thanks,
Jim