Mirror of Apache Calcite - Avatica Go SQL Driver

Clone this repo:
  1. fa87f84 [CALCITE-4299] Test against Go 1.14 and 1.15 by Francis Chuang · 3 weeks ago master
  2. 0e75064 [CALCITE-4174] avatica-go should handle complex/long URLs (josiahg) by Josiah Goodson · 10 weeks ago
  3. ddee4bd Update website for 5.0.0 release by Francis Chuang · 3 months ago
  4. 0e3f5df [CALCITE-4078] Prepare for 5.0.0 release by Francis Chuang · 4 months ago v5.0.0 v5.0.0-rc0
  5. a7b6c34 Clean up documentation and remove references to dep by Francis Chuang · 4 months ago

Apache Avatica/Phoenix SQL Driver

GoDoc 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.


We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go as the component.