mirror of https://github.com/yandex/odyssey.git
27 lines
441 B
C
27 lines
441 B
C
#ifndef OD_CLIENT_POOL_H_
|
|
#define OD_CLIENT_POOL_H_
|
|
|
|
/*
|
|
* odissey.
|
|
*
|
|
* PostgreSQL connection pooler and request router.
|
|
*/
|
|
|
|
typedef struct odclient_pool_t odclient_pool_t;
|
|
|
|
struct odclient_pool_t {
|
|
odlist_t list;
|
|
int count;
|
|
};
|
|
|
|
void od_clientpool_init(odclient_pool_t*);
|
|
void od_clientpool_free(odclient_pool_t*);
|
|
|
|
odclient_t*
|
|
od_clientpool_new(odclient_pool_t*);
|
|
|
|
void
|
|
od_clientpool_unlink(odclient_pool_t*, odclient_t*);
|
|
|
|
#endif
|