flytekitplugins.sqlalchemy.SQLAlchemyConfig#

class flytekitplugins.sqlalchemy.SQLAlchemyConfig(uri, connect_args=None, secret_connect_args=None)[source]#

Use this configuration to configure task. String should be standard sqlalchemy connector format (https://docs.sqlalchemy.org/en/14/core/engines.html#database-urls). Database can be found: - within the container - or from a publicly accessible source

Parameters:
  • uri (str) – default sqlalchemy connector

  • connect_args (Dict[str, Any] | None) – sqlalchemy kwarg overrides – ex: host

  • secret_connect_args (Dict[str, Secret] | None) – flyte secrets loaded into sqlalchemy connect args – ex: {“password”: flytekit.models.security.Secret(name=SECRET_NAME, group=SECRET_GROUP)}

Methods

secret_connect_args_to_dicts()[source]#
Return type:

Dict[str, Dict[str, str | None]] | None

Attributes

connect_args: Dict[str, Any] | None = None
secret_connect_args: Dict[str, Secret] | None = None
uri: str