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 ducklake config
  • 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,
    },
  },
});

Released under the Apache 2.0 License. Copyright 2025-present.