Mirror of Apache Calcite - Avatica Go SQL Driver
Go Shell Batchfile
Switch branches/tags
Clone or download
Permalink
Failed to load latest commit information.
errors Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
generic Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
hsqldb Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
internal Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
message Update to avatica 1.10.0 Aug 11, 2017
phoenix Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
site [CALCITE-2333] Remove has_zip property in release news item May 29, 2018
test-fixtures Replace gopher.png with calcite logo Apr 20, 2018
.gitignore Add IDE files to gitignore Apr 23, 2018
.travis.yml [CALCITE-2372] Simplify travis.yml and upgrade Phoenix to 4.14 in doc… Jun 23, 2018
Dockerfile Remove extraneous command from dockerfile. Apr 23, 2018
Gopkg.lock [CALCITE-2367] Change UUID package (Kenneth Shaw) Jun 16, 2018
Gopkg.toml [CALCITE-2367] Change UUID package (Kenneth Shaw) Jun 16, 2018
LICENSE A number of fixes, as itemized: Oct 17, 2017
NOTICE Initial commit for avatica-go Aug 11, 2017
README.md Fix documentation link in readme May 14, 2018
adapter.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
class_mappings.go Add Apache License header to files Aug 11, 2017
compat.go Add Apache License header to files Aug 11, 2017
compat_go18.go Add Apache License header to files Aug 11, 2017
connection.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
connection_go18.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
docker-compose.yml [CALCITE-2372] Simplify travis.yml and upgrade Phoenix to 4.14 in doc… Jun 23, 2018
driver.go [CALCITE-2367] Change UUID package (Kenneth Shaw) Jun 16, 2018
driver_go18_hsqldb_test.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
driver_go18_phoenix_test.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
driver_go18_test.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
driver_hsqldb_test.go Enable HSQLDB transaction tests Apr 20, 2018
driver_phoenix_test.go Replace gopher.png with calcite logo Apr 20, 2018
driver_test.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
dsn.go Fix typo Apr 23, 2018
dsn_test.go Add Apache License header to files Aug 11, 2017
gen-protobuf.bat Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
gen-protobuf.sh Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
http_client.go Remove go-cleanhttp Apr 17, 2018
make-release-artifacts.sh [CALCITE-2333] Remove zip release from build script May 29, 2018
moby.yml [CALCITE-2372] Add Phoenix 4.14.0 for testing and turn travis.yml int… Jun 22, 2018
result.go Add Apache License header to files Aug 11, 2017
rows.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
rows_go18.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
statement.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018
statement_go18.go Add Apache License header to files Aug 11, 2017
transaction.go Add HSQLDB support and move phoenix support into an adapter Apr 16, 2018

README.md

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.