Go library that provides a helpful wrapper around ADBC for DuckDB.
- Execute queries and statements
- Bulk inserts into DuckDB from an Arrow record
- Retrieve DuckDB catalog/schema information
- More helper functions for operations supported in ADBC
Using couac 🦆🛢️♭ is easy. First, use go get
to install the latest version
of the library.
go get -u github.com/loicalleyne/couac@latest
You can import couac
using:
import "github.com/loicalleyne/couac"
...
// Get new couac
quack, _ := NewDuck("duck.db")
defer quack.Close()
// Bulk ingest data from an Arrow record
_, err := couac.IngestCreateAppend(ctx, "destination_table", arrowRecord)
// Get []map[string]any of catalogs/db schemas - see docs
m, _ := couac.GetObjectsMap()
Give a ⭐️ if this project helped you! Feedback and PRs welcome.
Couac is released under the Apache 2.0 license. See LICENCE.txt