HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/local/apps/dovecot/include/dovecot/sql-db-cache.h
#ifndef SQL_DB_CACHE_H
#define SQL_DB_CACHE_H

struct sql_db_cache;

/* Like sql_init(), but use a connection pool. */
int sql_db_cache_new(struct sql_db_cache *cache, const struct sql_settings *set,
		      struct sql_db **db_r, const char **error_r);

struct sql_db_cache *sql_db_cache_init(unsigned int max_unused_connections);
void sql_db_cache_deinit(struct sql_db_cache **cache);

#endif