Skip to content

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

License

Notifications You must be signed in to change notification settings

loicalleyne/couac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks