class

Rayo::PG::Pool

Inherits Reference < Object

Can wrap externally driven Conns, or own standalone blocking transports.

Constructors

new(connections : Array(Conn))
Source
new(url : String, size : Int32 = 4, max_depth : Int32 = 1024)
Source

Instance methods

close
Source
connections
Source
drain
Source
flush
Source
pick

Least queued; ties rotate, preserving fairness at low load.

Source
query(stmt : Statement, *args, state : Int64 = 0_i64, &callback : Result, Int64 -> Nil) : Nil
Source
query(stmt : Statement, *args, state : Pointer(T), &callback : Result, Pointer(Void) -> Nil) : Nil forall T
Source