Rayo::PG::Pool
Inherits Reference < Object
Can wrap externally driven Conns, or own standalone blocking transports.
Constructors
new(connections : Array(Conn))
Sourcenew(url : String, size : Int32 = 4, max_depth : Int32 = 1024)
SourceInstance methods
close
Sourceconnections
Sourcedrain
Sourceflush
Sourcequery(stmt : Statement, *args, state : Int64 = 0_i64, &callback : Result, Int64 -> Nil) : Nil
Sourcequery(stmt : Statement, *args, state : Pointer(T), &callback : Result, Pointer(Void) -> Nil) : Nil forall T
Source