Apache calcite

Clone this repo:
  1. 2e3a26e [CALCITE-2372] Simplify travis.yml and upgrade Phoenix to 4.14 in docker-compose.yml by Francis Chuang · 4 weeks ago master
  2. 5f775b7 [CALCITE-2372] Add Phoenix 4.14.0 for testing and turn travis.yml into a build matrix by Francis Chuang · 4 weeks ago
  3. bb93a10 [CALCITE-2367] Change UUID package (Kenneth Shaw) by Kenneth Shaw · 5 weeks ago
  4. 24bae0c [CALCITE-2333] Remove has_zip property in release news item by Francis Chuang · 8 weeks ago
  5. d6f8eda [CALCITE-2333] Remove zip release from build script by Francis Chuang · 8 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.

Issues

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