Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apache/calcite-avatica-go
Apache Calcite Go
https://github.com/apache/calcite-avatica-go
big-data calcite geospatial hadoop java sql
Last synced: 2 days ago
JSON representation
Apache Calcite Go
- Host: GitHub
- URL: https://github.com/apache/calcite-avatica-go
- Owner: apache
- License: apache-2.0
- Created: 2017-08-08T07:00:08.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T00:05:41.000Z (10 days ago)
- Last Synced: 2024-12-12T01:18:37.732Z (10 days ago)
- Topics: big-data, calcite, geospatial, hadoop, java, sql
- Language: Go
- Homepage: https://calcite.apache.org/avatica
- Size: 713 KB
- Stars: 120
- Watchers: 29
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - avatica - Apache Avatica/Phoenix SQL driver for database/sql. (Database Drivers / Relational Database Drivers)
- awesome-go - calcite-avatica-go - Mirror of Apache Calcite - Avatica Go SQL Driver - ★ 19 (Database Drivers)
- awesome-go-extra - calcite-avatica-go - Avatica Go SQL Driver|99|27|0|2017-08-08T07:00:08Z|2022-08-13T06:40:21Z| (Generators / Relational Database Drivers)
README
# Apache Avatica/Phoenix SQL Driver
[![Go Reference](https://pkg.go.dev/badge/github.com/apache/calcite-avatica-go/v5.svg)](https://pkg.go.dev/github.com/apache/calcite-avatica-go/v5)
[![Build Status](https://github.com/apache/calcite-avatica-go/workflows/Tests/badge.svg)](https://github.com/apache/calcite-avatica-go)Apache Calcite's Avatica Go is a Go [database/sql](https://golang.org/pkg/database/sql/) driver for the Avatica server.
Avatica is a sub-project of [Apache Calcite](https://calcite.apache.org).
## 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](https://calcite.apache.org/avatica/docs/go_client_reference.html).
Release notes for all published versions are available on the [history
page](https://calcite.apache.org/avatica/docs/go_history.html).## Testing
For instructions on how to run tests for the project, please see our [testing guide](https://calcite.apache.org/avatica/develop/avatica-go.html#testing).## Issues
We do not use Github to file issues. Please create an issue on [Calcite's JIRA](https://issues.apache.org/jira/projects/CALCITE/issues)
and select `avatica-go` as the component. For further information, please see the [JIRA accounts guide](https://calcite.apache.org/develop/#jira-accounts).