https://github.com/sql-machine-learning/gohive
A Go driver for Hive
https://github.com/sql-machine-learning/gohive
Last synced: 12 months ago
JSON representation
A Go driver for Hive
- Host: GitHub
- URL: https://github.com/sql-machine-learning/gohive
- Owner: sql-machine-learning
- Created: 2019-04-10T02:48:19.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2024-07-30T01:42:50.000Z (over 1 year ago)
- Last Synced: 2025-01-11T00:26:38.118Z (about 1 year ago)
- Language: Thrift
- Homepage:
- Size: 601 KB
- Stars: 56
- Watchers: 13
- Forks: 28
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoHive: A Go `database/sql` Driver for Hive
[](https://travis-ci.org/travis-ci/travis-web)
To access databases, Go programmers call the standard library `database/sql`, which relies on *drivers* to talk to database management systems. GoHive is such a driver that talks to Hive via [HiveServer2](https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-HiveServer2), a Thrift server.
We found many open source Hive clients in Go. However we cannot find one completely compatible with the database/sql driver interface define in Go's standard library, so we developed our own solution and will continue to maintain and improve this project in the long run.
## For Users
GoHive is go-gettable. Please run the following command to install it:
```bash
go get sqlflow.org/gohive
```
`sqlflow.org/gohive` is a [vanity import path](https://blog.bramp.net/post/2017/10/02/vanity-go-import-paths/) of GoHive.
## For Developers
Your contribution to GoHive is very welcome! Please refer to [this document](docker/README.md) on how to build and test GoHive in a Docker container.
## License
GoHive comes with [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
## Acknowledgement
This implementation is strongly inspired by https://github.com/derekgr/hivething.