Mirror of Apache Calcite - Avatica Go SQL Driver

Clone this repo:
  1. ed4c274 [CALCITE-5586] Replace boostport/hbase-phoenix-all-in-one docker image with f21global/hbase-phoenix-all-in-one by Francis Chuang · 3 months ago main
  2. 7f3ca5a Bump golang.org/x/net from 0.0.0-20220725212005-46097bf591d3 to 0.7.0 by dependabot[bot] · 3 months ago
  3. 9db0166 [CALCITE-5353] Document new procedure for requesting JIRA accounts and becoming a contributor by Francis Chuang · 7 months ago
  4. d0511b8 Add JIRA instructions to release howto by Francis Chuang · 7 months ago
  5. d39ca14 Update docker release script to use rc tag in vote email links by Francis Chuang · 8 months ago

Apache Avatica/Phoenix SQL Driver

Go Reference Build Status

Apache Calcite's Avatica Go is a Go database/sql driver for the Avatica server.

Avatica is a sub-project of Apache Calcite.

Quick Start

Install using Go modules:

$ go get github.com/apache/calcite-avatica-go

The Phoenix/Avatica driver implements Go's database/sql/driver interface, so, import the database/sql package and the driver:

import "database/sql"
import _ "github.com/apache/calcite-avatica-go/v5"

db, err := sql.Open("avatica", "http://localhost:8765")

Then simply use the database connection to query some data, for example:

rows := db.Query("SELECT COUNT(*) FROM test")

For more details, see the home page.

Release notes for all published versions are available on the history page.

Issues

We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go as the component. For further information, please see the JIRA accounts guide.