Skip to content
Discussion options

You must be logged in to vote

does this help? I use this script for connecting to the metadata DB directly + DuckLake "DB" in SQL

#!/usr/bin/env duckdb -init

install ducklake;
install postgres;

create secret my_postgres (
    type postgres,
    host '127.0.0.1',
    port 5432,
    database 'postgres',
    user 'postgres',
    password 'password'
);

create secret my_ducklake (
    type ducklake,
    metadata_path '',
    metadata_schema 'some_schema', 
    data_path '/Users/cody/my_lake',
    metadata_parameters map {'TYPE': 'postgres', 'SECRET': 'my_postgres'}
);

attach '' as metadata (type postgres, schema 'some_schema', secret 'my_postgres');
attach 'ducklake:my_ducklake' as data;

use data;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kinghuang
Comment options

Answer selected by kinghuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants