Apache calcite

Clone this repo:
  1. b38c398 Fix documentation link in readme by Francis Chuang · 2 weeks ago master
  2. 34065da Fix typo by Francis Chuang · 4 weeks ago
  3. 7676754 Update documentation to state that the Name() method on error is now a field by Francis Chuang · 4 weeks ago
  4. c0fd06d Update release date for 3.0.0 by Francis Chuang · 4 weeks ago
  5. 3ed208d Update news item by Francis Chuang · 5 weeks 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 your dependency management tool (we recommend dep!):

$ dep ensure -add 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"

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.