Data-based: Going Beyond the DataframeLivestream + Demo - Nov 20th

Skip to main content

Go driver

The go-duckdb driver supports MotherDuck out of the box!

To connect, you need a dependency on the driver in your go.mod file:

github.com/duckdb/duckdb-go/v2 v2.5.1

Your code can then open a connection using the standard database/sql package, or any other mechanisms supported by go-duckdb:

db, err := sql.Open("duckdb", "md:my_db?motherduck_token=<token>")