class Clear::SQL::ConnectionPool

Defined in:

clear/sql/connection_pool.cr

Class Method Summary

Class Method Detail

def self.init(uri, name) #

[View source]
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).


[View source]