Class ExampleBase

Assembly: redb.Examples.dll

Base class for all examples.

public abstract class ExampleBase

Inheritance

Object→ExampleBase

Derived

E000_BulkInsertE000_BulkInsert_efE001_SaveAsyncE001_SaveAsync_efE002_LoadAsyncE002_LoadAsync_efE003_UniqueKeysE003_UniqueKeys_efE004_SubtreeAndElementKeysE004_SubtreeAndElementKeys_efE010_WhereSimpleE010_WhereSimple_efE011_WhereAndE011_WhereAnd_efE012_WhereOrE012_WhereOr_efE013_WhereNotE013_WhereNot_efE014_WhereRangeE014_WhereRange_efE015_WhereTripleAndE015_WhereTripleAnd_efE016_WhereChainE016_WhereChain_efE020_DateTimeGreaterE020_DateTimeGreater_efE021_DateTimeRangeE021_DateTimeRange_efE030_StringContainsE030_StringContains_efE031_StringStartsWithE031_StringStartsWith_efE032_StringContainsIgnoreCaseE032_StringContainsIgnoreCase_efE040_NestedPropertyE040_NestedProperty_efE041_DeepNestedE041_DeepNested_efE050_ArrayContainsE050_ArrayContains_efE051_ArrayMultipleE051_ArrayMultiple_efE052_ArrayNotContainsE052_ArrayNotContains_efE053_ArrayWithConditionsE053_ArrayWithConditions_efE060_DictContainsKeyE060_DictContainsKey_efE061_DictIndexerE061_DictIndexer_efE062_DictNestedClassE062_DictNestedClass_efE063_DictTupleKeyE063_DictTupleKey_efE070_CountAsyncE070_CountAsync_efE071_AnyAsyncE071_AnyAsync_efE072_AnyWithPredicateE072_AnyWithPredicate_efE073_AllAsyncE073_AllAsync_efE074_WhereInE074_WhereIn_efE075_SelectE075_Select_efE076_DistinctE076_Distinct_efE080_OrderByE080_OrderBy_efE081_OrderByThenByE081_OrderByThenBy_efE082_SkipTakeE082_SkipTake_efE083_OrderByDescendingE083_OrderByDescending_efE087_TreeCleanupE087_TreeCleanup_efE088_TreeCreateBulkE088_TreeCreateBulk_efE089_TreeCreateE089_TreeCreate_efE090_TreeLoadE090_TreeLoad_efE091_TreeCountE091_TreeCount_efE092_TreeChildrenE092_TreeChildren_efE093_TreePathE093_TreePath_efE094_TreeDescendantsE094_TreeDescendants_efE095_TreeMoveE095_TreeMove_efE096_TreeQueryE096_TreeQuery_efE097_TreeQueryRootsE097_TreeQueryRoots_efE098_TreeQueryLeavesE098_TreeQueryLeaves_efE099_TreeQueryLevelE099_TreeQueryLevel_efE100_TreeTraversalDFSE100_TreeTraversalDFS_efE101_TreeTraversalBFSE101_TreeTraversalBFS_efE102_TreeIsDescendantE102_TreeIsDescendant_efE103_TreeIsAncestorE103_TreeIsAncestor_efE104_TreeGetLevelE104_TreeGetLevel_efE105_TreeQueryWithRootE105_TreeQueryWithRoot_efE106_TreeQueryChildrenOfE106_TreeQueryChildrenOf_efE107_TreeQueryMultiRootE107_TreeQueryMultiRoot_efE108_TreeToTreeListE108_TreeToTreeList_efE109_TreeToRootListE109_TreeToRootList_efE110_TreeWhereHasAncestorE110_TreeWhereHasAncestor_efE111_TreeWhereHasDescendantE111_TreeWhereHasDescendant_efE112_TreeStatsE112_TreeStats_efE113_TreeToFlatListE113_TreeToFlatList_efE114_ListCreateE114_ListCreate_efE115_ListAddItemsE115_ListAddItems_efE116_ListGetByNameE116_ListGetByName_efE117_ListItemWithObjectE117_ListItemWithObject_efE118_PropsListItemFieldE118_PropsListItemField_efE119_PropsListItemArrayE119_PropsListItemArray_efE120_ListItemWhereByValueE120_ListItemWhereByValue_efE121_ListItemWhereInE121_ListItemWhereIn_efE122_ListItemDirectCompareE122_ListItemDirectCompare_efE123_ListItemArrayAnyE123_ListItemArrayAny_efE124_SumAsyncE124_SumAsync_efE125_AverageAsyncE125_AverageAsync_efE126_MinMaxAsyncE126_MinMaxAsync_efE127_AggregateAsyncE127_AggregateAsync_efE128_GroupBySimpleE128_GroupBySimple_efE129_GroupByFilteredE129_GroupByFiltered_efE130_GroupByListItemE130_GroupByMultiKeyE130_GroupByMultiKey_efE131_GroupByRedbE131_GroupByRedb_efE132_WindowRowNumberE132_WindowRowNumber_efE133_WindowRunningSumE133_WindowRunningSum_efE134_WindowLagLeadE134_WindowLagLead_efE135_WindowRankE135_WindowRank_efE136_WindowNtileE136_WindowNtile_efE137_WindowFirstLastE137_WindowFirstLast_efE138_WindowFrameE138_WindowFrame_efE139_DistinctRedbE139_DistinctRedb_efE140_DistinctByRedbE140_DistinctByRedb_efE141_WhereInRedbE141_WhereInRedb_efE142_GroupByArrayE142_GroupByArray_efE143_SumRedbAsyncE143_SumRedbAsync_efE144_MinMaxRedbAsyncE144_MinMaxRedbAsync_efE145_AverageRedbAsyncE145_AverageRedbAsync_efE146_AggregateRedbAsyncE146_AggregateRedbAsync_efE147_WindowPartitionByRedbE147_WindowPartitionByRedb_efE148_WindowOrderByRedbE148_WindowOrderByRedb_efE149_SelectProjectionE149_SelectProjection_efE150_ArrayAggregationE150_ArrayAggregation_efE150A_ArrayAggregationByIndexE150A_ArrayAggregationByIndex_efE151_ArithmeticMultiplyE151_ArithmeticMultiply_efE152_ArithmeticAddFieldsE152_ArithmeticAddFields_efE153_StringToLowerE153_StringToLower_efE154_StringTrimE154_StringTrim_efE155_StringChainE155_StringChain_efE156_MathAbsE156_MathAbs_efE157_DateTimeYearE157_DateTimeYear_efE158_ParenthesesE158_Parentheses_efE159_NestedMathE159_NestedMath_efE160_TreeQueryExpressionsE160_TreeQueryExpressions_efE161_SqlFunctionCoalesceE161_SqlFunctionCoalesce_efE162_SqlFunctionPowerE162_SqlFunctionPower_efE163_SqlFunctionNestedE163_SqlFunctionNested_efE164_BaseFieldsSingleE164_BaseFieldsSingle_efE165_BaseFieldsBatchE165_BaseFieldsBatch_efE166_GenericNullPropsE166_GenericNullProps_efE167_MixedBatchE167_MixedBatch_efE168_ArrayContainsE168_ArrayContains_efE169_ArrayContainsOrE169_ArrayContainsOr_efE170_ArrayContainsAndE170_ArrayContainsAnd_efE171_ScalarPlusArrayE171_ScalarPlusArray_efE172_StringLengthE172_StringLength_efE173_TreeQueryGroupByE173_TreeQueryGroupBy_efE174_TreeQueryWindowE174_TreeQueryWindow_efE175_TreeQueryGroupByWindowE175_TreeQueryGroupByWindow_efE176_TreeDistinctByE176_TreeDistinctBy_efE177_TreeDistinctByRedbE177_TreeDistinctByRedb_efE178_TreeOrderByE178_TreeOrderBy_efE179_TreeOrderByDescendingE179_TreeOrderByDescending_efE180_TreeDistinctByOrderByE180_TreeDistinctByOrderBy_efE181_DeleteSingleE181_DeleteSingle_efE182_DeleteBatchE182_DeleteBatch_efE183_FirstOrDefaultAsyncE183_FirstOrDefaultAsync_efE184_WhereNullableE184_WhereNullable_efE185_WhereBoolE185_WhereBool_efE186_ObjectReferenceE186_ObjectReference_efE187_UpdateExistingE187_UpdateExisting_efE188_SoftDeleteReferenceE188_SoftDeleteReference_efE190_SumAsyncFilteredE190_SumAsyncFiltered_efE191_WindowFilteredE191_WindowFiltered_efE192_AggregateFilteredE192_AggregateFiltered_efE193_AverageAsyncFilteredE193_AverageAsyncFiltered_efE194_MinMaxAsyncFilteredE194_MinMaxAsyncFiltered_efE195_GroupByWindowFilteredE195_GroupByWindowFiltered_efE200_SmokeSqlDumpE200_SmokeSqlDump_efE201_NullCheckBaseIdAmbiguityE201_NullCheckBaseIdAmbiguity_efE202_PvtPrefilterE202_PvtPrefilter_efE203_SeedVolumeE203_SeedVolume_efE204_TreePrefilterE204_TreePrefilter_efE205_WhereRedbSystemFieldsE205_WhereRedbSystemFields_efE206_WhereRedbNarrowsFirstE206_WhereRedbNarrowsFirst_efE997_DateTimeJulianVerifyE997_DateTimeJulianVerify_efEfExampleBase

Properties

ExplicitlyRequestedIds

The example ids named on the command line, uppercased; null when the whole suite runs.

public static IReadOnlySet<string>? ExplicitlyRequestedIds { get; set; }

Methods

Fail(string, string, ExampleTier, long, string)

Helper to create failure result.

protected static ExampleResult Fail(string id, string title, ExampleTier tier, long elapsedMs, string error)

GetMeta()

Get metadata from attribute.

public ExampleMetaAttribute? GetMeta()

Ok(string, string, ExampleTier, long, int, string[], string?)

Helper to create success result with count.

protected static ExampleResult Ok(string id, string title, ExampleTier tier, long elapsedMs, int count, string[] output, string? sql = null)

Ok(string, string, ExampleTier, long, string[], string?)

Helper to create success result without count (for setup/CRUD).

protected static ExampleResult Ok(string id, string title, ExampleTier tier, long elapsedMs, string[] output, string? sql = null)

RunAsync(IRedbService)

Run the example and return result.

public abstract Task<ExampleResult> RunAsync(IRedbService redb)