destinations.impl.motherduck.factory
motherduck Objects
class motherduck(Destination[MotherDuckClientConfiguration,
"MotherDuckClient"])
__init__
def __init__(credentials: t.Union[MotherDuckCredentials, str, t.Dict[str,
t.Any],
"DuckDBPyConnection"] = None,
create_indexes: bool = False,
destination_name: t.Optional[str] = None,
environment: t.Optional[str] = None,
**kwargs: t.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
- 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
- Should unique indexes be created**kwargs
- Additional arguments passed to the destination config