Am 25.11.2013 13:23, schrieb Shammah Chancellor:

On 2013-11-03 13:13:59 +0000, Sönke Ludwig said:

MysqlDB mdb = new MysqlDB(connection_string);

Connection c = mdb.lockConnection();

writefln("Server caps: %b", c.serverCapabilities);

Do you need to cache mdb somewhere, or do you just create that each time
safely?

It should be cached somewhere in a thread local variable so that it can
be shared among different tasks and the connection pool can do its work.