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 ofMotherDuckCredentialsor a connection string in the formatmd:///<database_name>?token=<service token>. Instance ofDuckDbCredentialsallows to pass access token, extensions, configs and pragmas to be set up for connection.create_indexesbool, optional - Should unique indexes be createddestination_namestr, optional - Name of the destination, can be used in config section to differentiate between multiple of the same typeenvironmentstr, optional - Environment of the destination**kwargsAny - Additional arguments passed to the destination config