On Sat, 2 Nov 2013 11:42:20 -0400, Shammah Chancellor wrote:

I was wondering if somebody could give me an example of how the
connectionpool stuff works. I can't dicern from the source how the
connections get added to the pool and grabbed for use.

Thanks!

Basically, you just have to create a connection pool and call lock() to get a connection each time a transaction is made:

MysqlDB mdb = new MysqlDB(connection_string);
Connection c = mdb.lockConnection();
writefln("Server caps: %b", c.serverCapabilities);

AFAIK, there may be some issues when per-connection states are involved (those need to be reset manually for each call to lock()).