Skip to main content

Go driver

As of v1.2.3, the go-duckdb driver supports MotherDuck out of the box!

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

require github.com/marcboeker/go-duckdb v1.2.3

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")