API Reference

SnowflakeConfigOauthToken

class monad.config.SnowflakeConfigOauthToken

Defines the data connection to Snowflake via OAuth token.

from monad.config import SnowflakeConfigOauthToken

SnowflakeConfigOauthToken(
    warehouse="warehouse_name",
    database="example_db",
    db_schema="example_schema",
)
Parameters

warehouse: str
Specifies the virtual warehouse to use once connected, or specifies an empty string. The specified warehouse should be an existing warehouse for which the specified default role has privileges. Environment variable can be called. Examples: "warehouse_name", "${SNOWFLAKE_WAREHOUSE}".


database: str
Specifies the default database to use once connected, or specifies an empty string. The specified database should be an existing database for which the specified default role has privileges. Examples: "example_db".


db_schema: str
Specifies the default schema to use for the specified database once connected, or specifies an empty string. The specified schema should be an existing schema for which the specified default role has privileges. Examples: "public".


authenticator: Literal["oauth"]
Default: "oauth"
Specifies the authentication method; always set to 'oauth' for this configuration.