Class ExampleResult

Assembly: redb.Examples.dll

Result of running an example. Used for unified output.

public record ExampleResult : IEquatable<ExampleResult>

Inheritance

Object→ExampleResult

Implements

Properties

Count

Number of objects processed/found.

public int? Count { get; init; }

ElapsedMs

Execution time in milliseconds.

public required long ElapsedMs { get; init; }

Error

Error message if failed.

public string? Error { get; init; }

Id

Example ID (E001, E010).

public required string Id { get; init; }

NotSupported

The library cannot do this out of the box (an EF twin of a window-function or recursive-tree example).

public bool NotSupported { get; init; }

Output

Short output lines (2-3 max).

public required string[] Output { get; init; }

Queries

Database round trips the example made; filled by the runner, null when not counted.

public int? Queries { get; init; }

Skipped

The example did no work in this run (a seeding example inside the whole-suite sweep). Such a result

public bool Skipped { get; init; }

Sql

Generated SQL (if ToSqlStringAsync was called).

public string? Sql { get; init; }

Success

Success flag.

public required bool Success { get; init; }

Tier

License tier.

public required ExampleTier Tier { get; init; }

Title

Example title.

public required string Title { get; init; }