Class E087_TreeCleanup

Assembly: redb.Examples.dll

Cleanup existing tree data before E088/E089 tests.
Run this before E088 or E089 to ensure clean state.
Uses SoftDeleteAsync: the objects are re-parented under the trash scheme synchronously,
so they vanish from queries (and release their unique keys) immediately - clean state
without waiting. The physical purge of the _values cascade is queued in the database
and drained by the built-in BackgroundDeletionService in any host that runs it.

[ExampleMeta("E087", "Tree Cleanup - Remove All", "Trees", ExampleTier.Free, 1, new string[] { "Tree", "Cleanup", "SoftDeleteAsync", "Pro" }, Order = 87)]
public class E087_TreeCleanup : ExampleBase

Inheritance

Object→ExampleBase→E087_TreeCleanup

Inherited Members

Methods

RunAsync(IRedbService)

Run the example and return result.

public override Task<ExampleResult> RunAsync(IRedbService redb)