Function mz_storage::render::sources::render_source
source ยท pub fn render_source<'g, G, C>(
scope: &mut Child<'g, G, Timestamp>,
dataflow_debug_name: &String,
connection: C,
description: IngestionDescription<CollectionMetadata>,
resume_stream: &Stream<Child<'g, G, Timestamp>, ()>,
storage_state: &StorageState,
base_source_config: RawSourceCreationConfig,
) -> (Vec<(Collection<Child<'g, G, Timestamp>, Row, Diff>, Collection<Child<'g, G, Timestamp>, DataflowError, Diff>)>, Stream<G, HealthStatusMessage>, Vec<PressOnDropButton>)
Expand description
Renders complete differential Collection
s
that represent the final source and its errors
as requested by the original CREATE SOURCE
statement,
encapsulated in the passed SourceInstanceDesc
.
The first element in the returned tuple is the pair of Collection
s,
the second is a type-erased token that will keep the source
alive as long as it is not dropped.
This function is intended to implement the recipe described here: https://github.com/MaterializeInc/materialize/blob/main/doc/developer/platform/architecture-storage.md#source-ingestion