class Clear::SQL::ConnectionPool
- Clear::SQL::ConnectionPool
- Reference
- Object
Defined in:
clear/sql/connection_pool.crClass Method Summary
- .init(uri, name)
-
.with_connection(target : String, &)
Retrieve a connection from the connection pool, or wait for it.
Class Method Detail
def self.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).