discontinuedPackage connect_database has been discontinued.

QueryMetrics class

Metrics collected from query execution for performance monitoring.

Constructors

QueryMetrics({required String query, required String queryType, required Duration executionTime, required int rowsAffected, required int resultSize, required bool success, String? error})

Properties

error → String?
Error message if the query failed
final
executionTime → Duration
Time taken to execute the query
final
hashCode → int
The hash code for this object.
no setterinherited
query → String
The SQL query that was executed (truncated if too long)
final
queryType → String
Type of query (SELECT, INSERT, UPDATE, DELETE, etc.)
final
resultSize → int
Size of the result set in bytes (estimated)
final
rowsAffected → int
Number of rows affected (for INSERT/UPDATE/DELETE) or returned (for SELECT)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → bool
Whether the query succeeded
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited