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:
- credentialsUnion[DuckDbCredentials, Dict[str, Any], str, DuckDBPyConnection], optional - Credentials to connect to the duckdb database. Can be an instance of- DuckDbCredentialsor a path to a database file. Use :pipeline: to create a duckdb in the working folder of the pipeline. Instance of- DuckDbCredentialsallows to pass extensions, configs and pragmas to be set up for connection.
- create_indexesbool, optional - Should unique indexes be created, defaults to False
- 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