dlt.destinations.impl.sqlalchemy.factory
sqlalchemy Objects
class sqlalchemy(Destination[SqlalchemyClientConfiguration,
                             "SqlalchemyJobClient"])
__init__
def __init__(credentials: Union[SqlalchemyCredentials, Dict[str, Any], str,
                                Engine] = None,
             create_unique_indexes: bool = False,
             create_primary_keys: bool = False,
             destination_name: str = None,
             environment: str = None,
             engine_args: Dict[str, Any] = None,
             **kwargs: Any) -> None
Configure the Sqlalchemy destination to use in a pipeline.
All arguments provided here supersede other configuration sources such as environment variables and dlt config files.
Arguments:
- credentialsUnion[SqlalchemyCredentials, Dict[str, Any], str, Engine], optional - Credentials to connect to the sqlalchemy database. Can be an instance of- SqlalchemyCredentialsor a connection string in the format- mysql://user:password@host:port/database. Defaults to None.
- create_unique_indexesbool, optional - Whether UNIQUE constraints should be created. Defaults to False.
- create_primary_keysbool, optional - Whether PRIMARY KEY constraints should be created. Defaults to False.
- destination_namestr, optional - The name of the destination. Defaults to None.
- environmentstr, optional - The environment to use. Defaults to None.
- engine_argsDict[str, Any], optional - Additional arguments to pass to the SQLAlchemy engine. Defaults to None.
- **kwargsAny - Additional arguments passed to the destination.