Skip to main content

Module common_redshift

Module common_redshift 

Source
Available on crate features sink-redshift or source-redshift only.
Expand description

Shared Amazon Redshift types (credentials enum, connection block, pool builder), re-exported when either Redshift connector is enabled.

Structs§

RedshiftConnection
A Redshift connection: endpoint, database, user, credentials, and a TLS toggle. Flattened (#[serde(flatten)]) into both the source and sink configs so the connection fields appear at the config top level.

Enums§

RedshiftCredentials
How to authenticate with Amazon Redshift.

Constants§

DEFAULT_PORT
Default Redshift port.

Functions§

build_connect_options
Build the sqlx PgConnectOptions for a RedshiftConnection.
build_pool
Build a pool and eagerly validate one connection so bad credentials / an unreachable host fail fast.
build_pool_lazy
Build a lazily-connected pool (no I/O at construction). The first query establishes the connection; connectivity/auth errors surface then (or via faucet_core::Source::check / faucet_core::Sink::check). Used by the connectors’ new() so construction stays offline-safe.
resolve_password
Resolve the password for the connection’s credentials.