Path: redb/redb.Examples/Output/ExampleResult.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Examples/Output/ExampleResult.cs
----
namespace redb.Examples.Output;
///
/// License tier for examples.
///
public enum ExampleTier
{
Free = 0,
Pro = 1,
Enterprise = 2
}
///
/// Result of running an example. Used for unified output.
///
public record ExampleResult
{
/// Example ID (E001, E010).
public required string Id { get; init; }
/// Example title.
public required string Title { get; init; }
/// License tier.
public required ExampleTier Tier { get; init; }
/// Success flag.
public required bool Success { get; init; }
/// Execution time in milliseconds.
public required long ElapsedMs { get; init; }
/// Number of objects processed/found.
public int? Count { get; init; }
/// Short output lines (2-3 max).
public required string[] Output { get; init; }
/// Generated SQL (if ToSqlStringAsync was called).
public string? Sql { get; init; }
/// Error message if failed.
public string? Error { get; init; }
/// Database round trips the example made; filled by the runner, null when not counted.
public int? Queries { get; init; }
///
/// The library cannot do this out of the box (an EF twin of a window-function or recursive-tree example).
/// Not a failure: the reason is in , there is no time to compare.
///
public bool NotSupported { get; init; }
///
/// The example did no work in this run (a seeding example inside the whole-suite sweep). Such a result
/// is not stored, so the time of the last real run stays in the results database.
///
public bool Skipped { get; init; }
}