Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
driver/ | H | 16-Mar-2019 | - | |||
internal/ | H | 16-Mar-2019 | - | |||
.gitignore | H A D | 16-Mar-2019 | 298 | |||
.gitlab-ci.yml | H A D | 16-Mar-2019 | 886 | |||
LICENSE | H A D | 16-Mar-2019 | 11.1 KiB | |||
NOTICE | H A D | 16-Mar-2019 | 152 | |||
README.md | H A D | 16-Mar-2019 | 1.9 KiB | |||
go.mod | H A D | 16-Mar-2019 | 63 | |||
go.sum | H A D | 16-Mar-2019 | 153 | |||
trust.pem | H A D | 16-Mar-2019 | 1.2 KiB |
README.md
1go-hdb 2====== 3 4[![GoDoc](https://godoc.org/github.com/SAP/go-hdb/driver?status.png)](https://godoc.org/github.com/SAP/go-hdb/driver) 5 6Go-hdb is a native Go (golang) HANA database driver for Go's sql package. It implements the SAP HANA SQL command network protocol: 7<http://help.sap.com/hana/SAP_HANA_SQL_Command_Network_Protocol_Reference_en.pdf> 8 9For the official SAP HANA client Go support (not this database driver) please see [SAP Help Portal](https://help.sap.com/viewer/0eec0d68141541d1b07893a39944924e/2.0.02/en-US/0ffbe86c9d9f44338441829c6bee15e6.html). 10 11## Installation 12 13``` 14go get github.com/SAP/go-hdb/driver 15``` 16 17## Building 18 19To build go-hdb you need to have a working Go environment with [version 1.11.5 or higher installed](https://golang.org/dl/). 20 21## Documentation 22 23API documentation and documented examples can be found at <https://godoc.org/github.com/SAP/go-hdb/driver>. 24 25## Tests 26 27To run the driver tests a HANA Database server is required. The test user must have privileges to create database schemas. 28 29``` 30go test -dsn hdb://user:password@host:port 31``` 32 33## Features 34 35* Native Go implementation (no C libraries, CGO). 36* Go <http://golang.org/pkg/database/sql> package compliant. 37* Support of database/sql/driver Execer and Queryer interface for parameter free statements and queries. 38* Support of bulk inserts. 39* Support of UTF-8 to / from CESU-8 encodings for HANA Unicode types. 40* Built-in support of HANA decimals as Go rational numbers <http://golang.org/pkg/math/big>. 41* Support of Large Object streaming. 42* Support of Stored Procedures with table output parameters. 43* Support of TLS TCP connections. 44* Support of little-endian (e.g. amd64) and big-endian architectures (e.g. s390x). 45* Support of [driver connector](https://golang.org/pkg/database/sql/driver/#Connector). 46 47## Dependencies 48 49* <http://golang.org/x/text/transform> 50 51## Todo 52 53* Additional Authentication Methods (actually only basic authentication is supported). 54