Skip to main content

ArchiveImportMode

Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData

Controls how IStreamDataRepository.ImportRowsAsync(OctoObjectId, IAsyncEnumerable<IReadOnlyDictionary<String, Object>>, ArchiveImportMode, CancellationToken) writes imported archive rows. Archive data export/import concept (AB#4230) §7.

public enum ArchiveImportMode

Inheritance ObjectValueTypeEnumArchiveImportMode
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
InsertOnly0Rows are inserted; a conflict on the natural key is a no-op update (the existing row's user-column values are preserved). Default for raw archives.
Upsert1Rows are upserted: a conflict on the natural key overwrites the existing user-column values with the imported ones (the same ON CONFLICT DO UPDATE path used by the windowed insert). Required for windowed (rollup / time-range) archives.