Skip to main content
Version: devel

dlt.destinations.impl.ducklake.factory

ducklake Objects

class ducklake(Destination[DuckLakeClientConfiguration, "DuckLakeClient"])

View source on GitHub

Instantiate a DuckLake destination.

A DuckLake has 3 components:

  • ducklake client: this is a duckdb :memory: instance with the ducklake ATTACHed
  • catalog: this is an SQL database storing metadata. It can be a duckdb instance (typically the ducklake client) or a remote database (sqlite, postgres, mysql)
  • storage: this is a filesystem where data is stored in files

The dlt DuckLake destination gives access to the "ducklake client". You never have to manage the catalog and storage directly; this is done through the ducklake client.

__init__

def __init__(credentials: Optional[DuckLakeCredentials] = None,
destination_name: Optional[str] = None,
environment: Optional[str] = None,
**kwargs: Any) -> None

View source on GitHub

Configure the ducklake destination to use in a pipeline.

All arguments provided here supersede other configuration sources such as environment variables and dlt config files.

Arguments:

  • credentials(Optional[DuckLakeCredentials]) - DuckLake credentials or instantiated connection to a DuckLake client (which is a duckdb instance). The DuckLake credentials include catalog name, catalog, and storage
  • destination_name(Optional[str]) - Name of a destination which. May be used as ducklake name, if explicit name is not set in credentials.
  • environment Optional[str] - Environment of the destination
  • **kwargs Any, optional - Additional arguments forwarded to the destination config

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.