marcboeker / go-duckdb

go-duckdb provides a database/sql driver for the DuckDB database engine.
MIT License
646 stars 97 forks source link

extensions question #119

Closed gedw99 closed 11 months ago

gedw99 commented 11 months ago

do extensions work ? https://duckdb.org/docs/extensions/overview

marcboeker commented 11 months ago

Yes. Please have a look at:

https://github.com/marcboeker/go-duckdb/blob/0e7847abef8598e8181331a1d980592bdda0c358/duckdb_test.go#L1038C6-L1038C6

gedw99 commented 11 months ago

Thanks

how do I load them from golang though ?

marcboeker commented 11 months ago

You can load the the same way as in the CLI.

rows, err = conn.QueryContext(context.Background(), `INSTALL 'json'; LOAD 'json';`)