Repodb.Cqrs.Make
repodb · API reference
Parameters
module D : Driver.SSignature
type nonrec t = D.connection tval create : D.connection config -> D.connection tval with_read : 'a t -> ('a -> 'b) -> ('b, Pool.pool_error) resultval with_write : 'a t -> ('a -> 'b) -> ('b, Pool.pool_error) resultval with_primary : 'a t -> ('a -> 'b) -> ('b, Pool.pool_error) resultval with_replica : 'a t -> ('a -> 'b) -> ('b, Pool.pool_error) resultval transaction :
D.connection t ->
(D.connection -> ('a, Error.db_error) result) ->
('a, Error.db_error) resultval has_replicas : 'a t -> boolval count_healthy_replicas : 'a t -> intval mark_replica_healthy : 'a t -> int -> unitval mark_replica_unhealthy : 'a t -> int -> unitval stats : 'a t -> statsval shutdown : 'a t -> unitval route_query_type : Query.query_type -> intent