faucet-common-snowflake
Shared configuration types and helpers for the Snowflake source and sink connectors in the faucet-stream ecosystem.
Contents
SnowflakeAuth— JWT key-pair (KeyPair { user, private_key_pem }) or OAuth bearer (OAuth { token }). DerivesSerialize,Deserialize,JsonSchema. ItsDebugimpl masks credentials as"***".authorization_header(&SnowflakeAuth, account)— produces theAuthorizationheader value for a Snowflake SQL REST API request (Bearer {jwt}forKeyPair,Snowflake Token="{token}"forOAuth).snowflake_token_type(&SnowflakeAuth)— matchingX-Snowflake-Authorization-Token-Typeheader value (KEYPAIR_JWT/OAUTH).
Usage
Most users do not depend on this crate directly. It is re-exported by:
Depend on this crate directly only if you are building a third-party connector that needs to accept the same auth shape in its config.
License
MIT OR Apache-2.0