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:
credentials
Union[MotherDuckCredentials, str, Dict[str, Any], DuckDBPyConnection], optional - Credentials to connect to the MotherDuck database. Can be an instance ofMotherDuckCredentials
or a connection string in the formatmd:///<database_name>?token=<service token>
create_indexes
bool, optional - Should unique indexes be createddestination_name
str, optional - Name of the destination, can be used in config section to differentiate between multiple of the same typeenvironment
str, optional - Environment of the destination**kwargs
Any - Additional arguments passed to the destination config