Module context

Source
Expand description

Context passed to and from the plugins.

Structs§

Context
Context information provided by PgDog to the plugin at statement execution. It contains the actual statement and several metadata about the state of the database cluster:
Route
Statement route.
Statement
PostgreSQL statement, parsed by pg_query.

Enums§

ReadWrite
Indicates if the statement is a read or a write. Read statements are sent to a replica, if one is configured. Write statements are sent to the primary.
Shard
What shard, if any, the statement should be sent to.