the instantiated PHP module, mutated in place
OptionalonRefusal: (refusal: ReplicaRequiresPrimary) => void
called with each refusal before it is thrown
Optionalcollect: (statements: readonly string[], payload: unknown) => void
turns an SQL refusal into forwarding: the mutating transaction runs on the driver's speculative path (rolled back) and its statements go here for the primary to commit; only SQL forwards, since a sent mail has no rollback
Makes a replica unable to commit an authoritative side effect by wrapping the installed surface, so a later capability is refused until classified. A refusal throws before the inner call.