Mini application server API for C++.

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

db
Class CzzDbPool

   in zz_db_pool.h

class CzzDbPool

Database pool

Author:
Toni Thomsson, toni@tonjac.org

Constructor Summary
CzzDbPool( const char* connect, int size, int autocommit = 1 )
          Create a pool of database connections
virtual ~CzzDbPool()
          
 
Method Summary
 void freeConnection( CzzDb* connection )
          Return connection to pool, unlocks the connection to be used by someone else
 CzzDb* getConnection( void )
          Get a free connection from pool
 

Constructor Detail

CzzDbPool

public CzzDbPool( const char* connect, int size, int autocommit = 1 );
Create a pool of database connections
Parameters:
connect - Connect string
size - Number of connections
autocommit - Autocommit on/off 1=on, 0=off

~CzzDbPool

public virtual ~CzzDbPool();


Method Detail

freeConnection

public void freeConnection( CzzDb* connection );
Return connection to pool, unlocks the connection to be used by someone else

getConnection

public CzzDb* getConnection( void );
Get a free connection from pool

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD