view src/lib-sql/sql-pool.h @ 9266:cd29b745c8dd HEAD

configure: clock_gettime()'s -lrt adding dropped everything else from $LIBS.
author Timo Sirainen <tss@iki.fi>
date Mon, 27 Jul 2009 06:32:42 -0400
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