view src/lib-sql/sql-pool.h @ 9658:8ba4253adc9b HEAD tip

*-login: SSL connections didn't get closed when the client got destroyed.
author Timo Sirainen <tss@iki.fi>
date Thu, 08 May 2014 16:41:29 +0300
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