view src/lib-sql/sql-pool.h @ 9191:b340ecb24469 HEAD

Fix VPATH build of RQUOTA support. Some rpcgen derive #include "..." paths from the infile argument. This will be off for VPATH builds, as the generated rquota_xdr.c code will look in $(srcdir), but we'll generate the rquota.h file in $(builddir). Play safe and copy rquota.x to $(builddir) first. This fixes the build on openSUSE 11.1.
author Matthias Andree <matthias.andree@gmx.de>
date Tue, 07 Jul 2009 21:01:36 +0200
parents e66bf9b9e011
children
line wrap: on
line source

#ifndef SQL_POOL_H
#define SQL_POOL_H

struct sql_pool;

/* Like sql_init(), but use a connection pool. */
struct sql_db *sql_pool_new(struct sql_pool *pool,
			    const char *db_driver, const char *connect_string);

struct sql_pool *sql_pool_init(unsigned int max_unused_connections);
void sql_pool_deinit(struct sql_pool **pool);

#endif