How to implement a ZeosLib connection pool. ZDbcPooled.pas??
Posted: 26.12.2014, 15:17
Hi there everyone,
I'm trying to implement a connection pool for an application of mine. I previously used Cary Jensen's connection pool but I later decided to write one of my own. Because I use Zeos 7.1.4 on Lazarus 1.2.6, I wrote a small class to handle connections to my database. However while debugging, I stumbled upon ZDbcPooled.pas & to my surprise it seemed to have the features I was trying to rewrite. The only problem I can't find examples of how it is used. It would be a good thing if it is made more prominent because it means it might be able to handle pooled connections to all databases that the ZeosLib supports.
So my question is this, does anyone have any examples of how ZDbcPooled.pas works?
Thanks,
JD
I'm trying to implement a connection pool for an application of mine. I previously used Cary Jensen's connection pool but I later decided to write one of my own. Because I use Zeos 7.1.4 on Lazarus 1.2.6, I wrote a small class to handle connections to my database. However while debugging, I stumbled upon ZDbcPooled.pas & to my surprise it seemed to have the features I was trying to rewrite. The only problem I can't find examples of how it is used. It would be a good thing if it is made more prominent because it means it might be able to handle pooled connections to all databases that the ZeosLib supports.
So my question is this, does anyone have any examples of how ZDbcPooled.pas works?
Thanks,
JD