dlt.destinations.impl.duckdb.factory
duckdb Objects
class duckdb(Destination[DuckDbClientConfiguration, "DuckDbClient"])
__init__
def __init__(credentials: Union[DuckDbCredentials, Dict[str, Any], str,
DuckDBPyConnection] = None,
create_indexes: bool = False,
destination_name: str = None,
environment: str = None,
**kwargs: Any) -> None
Configure the DuckDB 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[DuckDbCredentials, Dict[str, Any], str, DuckDBPyConnection], optional - Credentials to connect to the duckdb database. Can be an instance ofDuckDbCredentials
or a path to a database file. Use :pipeline: to create a duckdb in the working folder of the pipelinecreate_indexes
bool, optional - Should unique indexes be created, defaults to Falsedestination_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