dlt.destinations.impl.motherduck.factory
motherduck Objects
class motherduck(Destination[MotherDuckClientConfiguration,
                             "MotherDuckClient"])
__init__
def __init__(credentials: Union[MotherDuckCredentials, str, Dict[str, Any],
                                DuckDBPyConnection] = None,
             create_indexes: bool = False,
             destination_name: str = None,
             environment: str = None,
             **kwargs: Any) -> None
Configure the MotherDuck destination to use in a pipeline.
All arguments provided here supersede other configuration sources such as environment variables and dlt config files.
Arguments:
- credentialsUnion[MotherDuckCredentials, str, Dict[str, Any], DuckDBPyConnection], optional - Credentials to connect to the MotherDuck database. Can be an instance of- MotherDuckCredentialsor a connection string in the format- md:///<database_name>?token=<service token>. Instance of- DuckDbCredentialsallows to pass access token, extensions, configs and pragmas to be set up for connection.
- create_indexesbool, optional - Should unique indexes be created
- destination_namestr, optional - Name of the destination, can be used in config section to differentiate between multiple of the same type
- environmentstr, optional - Environment of the destination
- **kwargsAny - Additional arguments passed to the destination config