Class

PgsqlConnectionPool

Description

final class Pgsql.ConnectionPool : GObject.Object
{
  /* No available fields */
}

A pool of PostgreSQL database connections.

PgsqlConnectionPool manages a pool of PgsqlConnection objects, allowing efficient reuse of database connections. The pool maintains a minimum number of connections (min_size) and can grow up to a maximum number (max_size) as needed.

Connections are acquired using pgsql_connection_pool_acquire() and must be released back to the pool using pgsql_connection_pool_release() when finished.

Failed connections are automatically detected and removed from the pool, with new connections created as needed to maintain the minimum pool size.

Ancestors

Constructors

pgsql_connection_pool_new

Creates a new PgsqlConnectionPool asynchronously and attempts to warm up the pool by establishing min_size connections.

Instance methods

pgsql_connection_pool_acquire

Acquires a connection from the pool.

pgsql_connection_pool_release

Returns connection back to the pool.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PgsqlConnectionPoolClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.