Repodb.Pool.Make
repodb · API reference
Parameters
module D : Driver.SSignature
type nonrec t = D.connection ttype conn = D.connectionval create :
max_size:int ->
conninfo:string ->
?validate:(D.connection -> bool) ->
unit ->
D.connection tval acquire : 'a t -> ('a, pool_error) resultval acquire_blocking : ?timeoutf:float -> 'a t -> ('a, pool_error) resultval release : 'a t -> 'a -> unitval with_connection : 'a t -> ('a -> 'b) -> ('b, pool_error) resultval with_connection_blocking :
?timeoutf:float ->
'a t ->
('a -> 'b) ->
('b, pool_error) resultval drain : 'a t -> unitval shutdown : 'a t -> unitval stats : 'a t -> statsval size : 'a t -> intval available : 'a t -> intval in_use : 'a t -> intval is_closed : 'a t -> boolmodule Multi : sig ... end