DuckLake Local Catalog Example
This example attaches a local DuckLake catalog backed by a DuckDB file and writes a small table.
Source: example/ducklake-local.ts
Run the Example
bun run example/ducklake-local.ts
What It Demonstrates
- DuckLake catalog attach via the
ducklakeconfig - Data path configuration for DuckLake tables
- Basic insert and select workflow
Key Snippet
const db = await drizzle(':memory:', {
ducklake: {
catalog: './ducklake.duckdb',
install: true,
load: true,
attachOptions: {
dataPath: './ducklake-data',
createIfNotExists: true,
},
},
});