SAP HANA Database Client for Go
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
driver release 0.13.2 Jan 12, 2019
internal release 0.13.2 Jan 12, 2019
.gitignore release 0.11.1 Apr 22, 2018
.gitlab-ci.yml release 0.13.2 Jan 12, 2019
LICENSE Initial commit Jun 4, 2014
NOTICE fixes #14 Oct 9, 2017 release 0.13.2 Jan 12, 2019
trust.pem release 0.11.0 Mar 24, 2018



Go-hdb is a native Go (golang) HANA database driver for Go's sql package. It implements the SAP HANA SQL command network protocol:

For the official SAP HANA client Go support (not this database driver) please see SAP Help Portal.


go get


To build go-hdb you need to have a working Go environment with version 1.10.4 or higher installed.


API documentation and documented examples can be found at


To run the driver tests a HANA Database server is required. The test user must have privileges to create database schemas.

go test -dsn hdb://user:password@host:port


  • Native Go implementation (no C libraries, CGO).
  • Go package compliant.
  • Support of database/sql/driver Execer and Queryer interface for parameter free statements and queries.
  • Support of bulk inserts.
  • Support of UTF-8 to / from CESU-8 encodings for HANA Unicode types.
  • Built-in support of HANA decimals as Go rational numbers
  • Support of Large Object streaming.
  • Support of Stored Procedures with table output parameters.
  • Support of TLS TCP connections.
  • Support of little-endian (e.g. amd64) and big-endian architectures (e.g. s390x).



  • Additional Authentication Methods (actually only basic authentication is supported).