Table of Contents

Class QueryExecutedEvent

Namespace
CL.MySQL2.Events
Assembly
CL.MySQL2.dll

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.

public record QueryExecutedEvent : IEvent, IEquatable<QueryExecutedEvent>
Inheritance
QueryExecutedEvent
Implements
IEvent
Inherited Members

Constructors

QueryExecutedEvent(string, string, long, int, bool, DateTime)

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.

public QueryExecutedEvent(string ConnectionId, string Query, long ElapsedMs, int RowCount, bool CacheHit, DateTime CompletedAt)

Parameters

ConnectionId string
Query string
ElapsedMs long
RowCount int
CacheHit bool
CompletedAt DateTime

Properties

CacheHit

public bool CacheHit { get; init; }

Property Value

bool

CompletedAt

public DateTime CompletedAt { get; init; }

Property Value

DateTime

ConnectionId

public string ConnectionId { get; init; }

Property Value

string

ElapsedMs

public long ElapsedMs { get; init; }

Property Value

long

Query

public string Query { get; init; }

Property Value

string

RowCount

public int RowCount { get; init; }

Property Value

int