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.
RedshiftCredentials—password(implemented in v1), plus reservediam/redshift_data_apivariants that currently return a typed error.RedshiftConnection— host / port / database / user + a TLS toggle; flattened into both end configs so the wire shape matches the other SQL connectors.build_connect_options/build_pool/build_pool_lazy— the single place asqlxPgConnectOptionsand aPgPoolare constructed.resolve_password— extracts the password (and is where an unsupported credential variant surfaces its error).
Structs§
- Redshift
Connection - 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§
- Redshift
Credentials - How to authenticate with Amazon Redshift.
Constants§
- DEFAULT_
PORT - Default Redshift port.
Functions§
- build_
connect_ options - Build the
sqlxPgConnectOptionsfor aRedshiftConnection. - 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.