Mirror of Apache Calcite - Avatica Go SQL Driver

Clone this repo:
  1. 13648f0 [CALCITE-5237] Upgrade dependencies and regenerate protobufs by Francis Chuang · 6 days ago main
  2. 068223d [CALCITE-5236] Test against Avatica 1.22 by default in docker-compose.yml by Francis Chuang · 6 days ago
  3. f3365b3 [CALCITE-5235] Run Github Actions tests using docker and upgrade Go by Francis Chuang · 7 days ago
  4. a0292fb [CALCITE-5234] Remove witch / live-reload support for development by Francis Chuang · 8 days ago
  5. ee40937 Link Go reference to the latest version of the documentation. by Francis Chuang · 4 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.