Skip to main content

Module intercept

Module intercept 

Source
Expand description

Message interceptors that produce synthetic client-facing responses without involving the upstream server. Each handler either consumes the message (returns true) or defers it to the normal forwarding path (returns false).

The SQL-driven handlers take the caller’s one-per-message sql::Statement classification instead of re-parsing the message. Callers only offer statements from simple-protocol Query messages for interception: a Parse-carried statement is being prepared, not executed, and a synthetic simple-query response would desynchronize the extended-protocol reply stream.