class

Lustra::SQL::ConnectionPool

Inherits Reference < Object

Class methods

init(uri, name)
Source
with_connection(target : String, &)

Retrieve a connection from the connection pool, or wait for it. If the current Fiber already has a connection, the connection is returned; this strategy provides easy usage of multiple statement connection (like BEGIN/ROLLBACK features).

Source