Table of Contents

Namespace CL.MySQL2.Events

Classes

CacheHitEvent

Published when a cached query result is returned.

CacheMissEvent

Published on cache miss (query had to hit the DB).

DatabaseConnectedEvent

Published when a MySQL connection is successfully opened.

DatabaseDisconnectedEvent

Published when a MySQL connection is closed.

HealthChangedEvent

Published when the library's health state changes.

N1QueryDetectedEvent

Published when the N+1 detector observes the same query template firing many times within a single request scope. Fires once per scope per offending template.

QueryExecutedEvent

Published after every query, fast or slow. Carries SQL text, elapsed ms, row count, cache hit flag, and the connection it ran on. Subscribe for dashboards / metrics / traces.

SlowQueryEvent

Published when a query exceeds the configured slow-query threshold.

TableSyncedEvent

Published after a table is synchronized (created or altered).