Skip to main content

risingwave_connector/connector_common/
mod.rs

1// Copyright 2024 RisingWave Labs
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Common parameters and utilities for both source and sink.
16
17mod mqtt_common;
18pub use mqtt_common::{MqttCommon, QualityOfService as MqttQualityOfService};
19
20mod pubsub_common;
21pub(crate) use pubsub_common::resolve_pubsub_project_id;
22
23mod common;
24pub use common::{
25    AwsAuthProps, AwsPrivateLinkItem, DISABLE_DEFAULT_CREDENTIAL, KafkaCommon,
26    KafkaConnectionProps, KafkaPrivateLinkCommon, KinesisCommon, MongodbCommon, NatsCommon,
27    NatsConnectionProps, PRIVATE_LINK_BROKER_REWRITE_MAP_KEY, PRIVATE_LINK_TARGETS_KEY,
28    PulsarCommon, PulsarOauthCommon, RdKafkaPropertiesCommon, SHARED_NATS_CLIENT,
29    TcpKeepaliveConfig,
30};
31mod connection;
32pub use connection::{
33    ConfluentSchemaRegistryConnection, Connection, ElasticsearchConnection, IcebergConnection,
34    KafkaConnection, SCHEMA_REGISTRY_CONNECTION_TYPE, read_kafka_log_level, validate_connection,
35};
36pub use iceberg::compaction::{IcebergCommittedSnapshot, IcebergSinkCompactionUpdate};
37
38mod iceberg;
39#[cfg(not(madsim))]
40mod maybe_tls_connector;
41pub mod postgres;
42
43pub use iceberg::{
44    IcebergCatalogKind, IcebergCatalogRuntime, IcebergCommon, IcebergTableIdentifier,
45    ResolvedIcebergCatalogConfig, iceberg_java_catalog_props_from_options,
46};
47pub use postgres::{
48    PgConnectionConfig, PostgresExternalTable, SslMode, create_pg_client,
49    create_pg_client_from_properties, discover_pgvector_dimensions,
50    pg_connection_config_from_properties,
51};
52
53#[cfg(test)]
54mod common_test;