connect.h File Reference
#include <string>
#include <tntdb/connection.h>

Go to the source code of this file.

Namespaces

namespace  tntdb

Functions

Connection tntdb::connect (const std::string &url)
 Establish a connection to a database.
Connection tntdb::connectCached (const std::string &url)
 Fetch a connection from a pool or create a new one.
void tntdb::dropCached (unsigned keep=0)
 Release unused connections; keep the given number of connections.
void tntdb::dropCached (const std::string &url, unsigned keep=0)
 Release unused connections with the given database url; keep the given number of connections.
void tntdb::setMaxPoolSize (unsigned max)
 Set the maximum pool size for new connection pools.
unsigned tntdb::getMaxPoolSize ()
 Get the current setting for maximum pool size (see setMaxPoolSize())