Skip to main content

Crate faucet_common_redshift

Crate faucet_common_redshift 

Source
Expand description

§faucet-common-redshift

Shared connection, credentials, and connection-pool types for the faucet-stream Amazon Redshift source and sink connectors.

Redshift is wire-compatible with PostgreSQL, so both connectors talk to it through sqlx’s Postgres driver.

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.