class

AtomSpace::ConnectionPool

Inherits Reference < Object

Database connection pool for improved concurrency and throughput

Constructors

new(connection_string : String, size : Int32 = 10)

Instance methods

acquire

Acquire a connection from the pool (blocks if none available)

close

Close all connections in the pool

release(conn : DB::Database)

Release a connection back to the pool

stats

Get pool statistics

with_connection

Execute a block with a connection from the pool