Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.15 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.15 KB

couac 🦆🛢️♭

Go Reference

Go library that provides a helpful wrapper around ADBC for DuckDB.

Features

  • Execute queries and statements
  • Bulk inserts into DuckDB from an Arrow record
  • Retrieve DuckDB catalog/schema information

Planned

  • More helper functions for operations supported in ADBC

🚀 Install

Using couac 🦆🛢️♭ is easy. First, use go get to install the latest version of the library.

go get -u github.com/loicalleyne/couac@latest

💡 Usage

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

💫 Show your support

Give a ⭐️ if this project helped you! Feedback and PRs welcome.

License

Couac is released under the Apache 2.0 license. See LICENCE.txt