CascadeAnalytics class

Analytics data collected during cascade delete operations.

Constructors

CascadeAnalytics({required Duration totalDuration, required int queriesExecuted, required int relationshipsTraversed, required Map<Type, int> entitiesProcessedByType, required Map<Type, int> entitiesDeletedByType, required int restrictViolations, required int setNullOperations, required int errorsEncountered, required bool wasDryRun, required DateTime startedAt, required DateTime completedAt})
const

Properties

averageTimePerEntity Duration
Average time per entity processed.
no setter
completedAt DateTime
Timestamp when the operation completed.
final
entitiesDeletedByType Map<Type, int>
Map of entity types to the number of entities successfully deleted.
final
entitiesProcessedByType Map<Type, int>
Map of entity types to the number of entities processed.
final
errorsEncountered int
Number of errors encountered.
final
hashCode int
The hash code for this object.
no setterinherited
queriesExecuted int
Number of database queries executed.
final
relationshipsTraversed int
Number of relationships traversed.
final
restrictViolations int
Number of restrict violations encountered.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setNullOperations int
Number of set-null operations performed.
final
startedAt DateTime
Timestamp when the operation started.
final
successRate double
Success rate as a percentage (0.0 to 100.0).
no setter
totalDuration Duration
Total duration of the cascade delete operation.
final
totalEntitiesDeleted int
Total number of entities deleted across all types.
no setter
totalEntitiesProcessed int
Total number of entities processed across all types.
no setter
wasDryRun bool
Whether the operation was a dry run.
final

Methods

copyWith({Duration? totalDuration, int? queriesExecuted, int? relationshipsTraversed, Map<Type, int>? entitiesProcessedByType, Map<Type, int>? entitiesDeletedByType, int? restrictViolations, int? setNullOperations, int? errorsEncountered, bool? wasDryRun, DateTime? startedAt, DateTime? completedAt}) CascadeAnalytics
Creates a copy with updated values.
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