Apache calcite

Clone this repo:
  1. 36d18fc [CALCITE-2724] Exclude .md files from import path check in release script to avoid false positives by Francis Chuang · 9 days ago master
  2. 74c8465 [CALCITE-2723] Generate SHA512 digest for releases by Francis Chuang · 9 days ago
  3. 4d701ca [CALCITE-2549] Add news item and update changelog for avatica-go 3.2.0 by Francis Chuang · 3 months ago
  4. 2a2957d [CALCITE-2549] Update changelog for avatica-go 3.2.0 by Francis Chuang · 3 months ago
  5. 0a166d5 [CALCITE-2550] Update release script to build tarballs with filenames in by Francis Chuang · 3 months ago v3.2.0 v3.2.0-rc0

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

If you are using Go 1.10 and below, install using dep:

$ dep ensure -add github.com/apache/calcite-avatica-go

If you are using Go 1.11 and above, 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/v3"

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.