DuckLake
A DuckLake: a catalog database plus data files. It is the
database of a DuckDB source, or the ducklake block of an attachment.
Example
sources:
- name: lake
type: duckdb
database:
catalog:
host: ${env.LAKE_HOST}
database: ducklake
username: ${env.LAKE_USER}
password: ${env.LAKE_PASSWORD}
data_path: s3://my-bucket/lake/
storage:
type: s3
key_id: ${env.AWS_ACCESS_KEY_ID}
secret: ${env.AWS_SECRET_ACCESS_KEY}
region: us-east-1
For a catalog in a file, set catalog: ducklake:sqlite:local/catalog.sqlite.
Attributes
| Field | Type | Default | Description |
|---|---|---|---|
| path | string | None | A unique path to this object |
| catalog | Any of: DuckLakePostgresCatalog, string | None | A Postgres catalog, or a ducklake: URI for a catalog in a DuckDB or SQLite file. |
| data_path | string | None | Where the DuckLake keeps its data files. An existing DuckLake does not need it. With storage it is also the scope of the credentials, and it is necessary when more than one DuckLake of a source has storage. |
| read_only | boolean | True | Attach the DuckLake read-only. Set to false to allow writes. |
| snapshot_version | integer | None | Read the DuckLake as of this snapshot, not the latest one. |
| storage | Any of: DuckLakeAzureStorage, DuckLakeGcsStorage, DuckLakeS3Storage | None | The credentials that read the data path: type: gcs, type: s3 or type: azure. A local path or a public bucket does not need it. |