Module mz_storage_types::sources
source · Expand description
Types and traits related to the introduction of changing collections into dataflow
.
Re-exports§
pub use crate::sources::envelope::SourceEnvelope;
pub use crate::sources::kafka::KafkaSourceConnection;
pub use crate::sources::load_generator::LoadGeneratorSourceConnection;
pub use crate::sources::mysql::MySqlSourceConnection;
pub use crate::sources::mysql::MySqlSourceExportDetails;
pub use crate::sources::postgres::PostgresSourceConnection;
pub use crate::sources::postgres::PostgresSourceExportDetails;
Modules§
- Types and traits related to the decoding of data for sources.
- Types related to source envelopes
- Types related kafka sources
- Types related to load generator sources
- Types related to mysql sources
- Types related to postgres sources
- Nested message and enum types in
ProtoCompression
. - Nested message and enum types in
ProtoIngestionDescription
. - Nested message and enum types in
ProtoSourceConnection
. - Nested message and enum types in
ProtoSourceData
. - Nested message and enum types in
ProtoSourceExportDetails
. - Nested message and enum types in
ProtoSourceExportStatementDetails
. - Nested message and enum types in
ProtoTimeline
.
Structs§
- A description of a source ingestion
- Universal language for describing message positions in Materialize, in a source independent way. Individual sources like Kafka or File sources should explicitly implement their own offset type that converts to/From MzOffsets. A 0-MzOffset denotes an empty stream.
- NOTE: this message is encoded and stored as part of a source export statement option (currently only
CREATE SUBSOURCE
statements) Be extra careful about changes, ensuring that all changes are backwards compatible - An external source of updates for a relational collection.
- Defines the configuration for how to handle data that is exported for a given Source Export.
- Stores and resolves references to a
&[T: ExternalCatalogReference]
.
Enums§
- A decoder for
Row
s withinSourceData
. - An encoder for
Row
s withinSourceData
. - Details necessary for each source export to allow the source implementations to export data to the export’s collection.
- Details necessary to store in the
Details
option of a source export statement (CREATE SUBSOURCE
andCREATE TABLE .. FROM SOURCE
statements), to generate the appropriateSourceExportDetails
struct during planning. NOTE that this is serialized as proto to the catalog, so any changes here must be backwards compatible or will require a migration. - The meaning of the timestamp number produced by data sources. This type is not concerned with the source of the timestamp (like if the data came from a Debezium consistency topic or a CDCv2 stream), instead only what the timestamp number means.
Traits§
- Describes how external references should be organized in a multi-level hierarchy.
- A connection to an external system
Functions§
- Given a
RelationDesc
returns an arbitrarySourceData
.