{"id":15024016,"url":"https://github.com/sap/go-hdb","last_synced_at":"2026-02-11T14:05:58.322Z","repository":{"id":17685392,"uuid":"20491274","full_name":"SAP/go-hdb","owner":"SAP","description":"SAP HANA Database Client for Go","archived":false,"fork":false,"pushed_at":"2025-05-07T06:59:25.000Z","size":904,"stargazers_count":176,"open_issues_count":3,"forks_count":58,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-07T22:11:49.674Z","etag":null,"topics":["client","database-driver","driver","go","golang","hana","hdb","native","native-go","sap"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SAP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-06-04T16:32:59.000Z","updated_at":"2025-05-07T06:55:32.000Z","dependencies_parsed_at":"2024-05-06T17:47:43.004Z","dependency_job_id":"9bd9a7eb-a546-4966-9462-55ad4c7d5e5c","html_url":"https://github.com/SAP/go-hdb","commit_stats":{"total_commits":126,"total_committers":1,"mean_commits":126.0,"dds":0.0,"last_synced_commit":"67649327b5c5f7aef26eb840fad23d5186b1c16e"},"previous_names":[],"tags_count":257,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP%2Fgo-hdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP%2Fgo-hdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP%2Fgo-hdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAP%2Fgo-hdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SAP","download_url":"https://codeload.github.com/SAP/go-hdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149976,"owners_count":22022852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","database-driver","driver","go","golang","hana","hdb","native","native-go","sap"],"created_at":"2024-09-24T19:59:42.592Z","updated_at":"2026-01-06T20:26:16.212Z","avatar_url":"https://github.com/SAP.png","language":"Go","readme":"# go-hdb\n[![Go Reference](https://pkg.go.dev/badge/github.com/SAP/go-hdb/driver.svg)](https://pkg.go.dev/github.com/SAP/go-hdb/driver)\n[![Go Report Card](https://goreportcard.com/badge/github.com/SAP/go-hdb)](https://goreportcard.com/report/github.com/SAP/go-hdb)\n[![REUSE status](https://api.reuse.software/badge/github.com/SAP/go-hdb)](https://api.reuse.software/info/github.com/SAP/go-hdb)\n![](https://github.com/SAP/go-hdb/workflows/build/badge.svg)\n\nGo-hdb is a native Go (golang) HANA database driver for Go's sql package. It implements the SAP HANA SQL command network protocol.\n\nFor the official SAP HANA client Go support (not this database driver) please see [SAP Help Portal](https://help.sap.com/docs/SAP_HANA_CLIENT).\n\n## Installation\n\n```\ngo get -u github.com/SAP/go-hdb/driver\n```\n\n## Building\n\nTo build go-hdb you need to have a working Go environment of the [latest or second latest Go version](https://golang.org/dl/).\n\n## Documentation\n\nAPI documentation and documented examples can be found at \u003chttps://pkg.go.dev/github.com/SAP/go-hdb/driver\u003e.\n\n## HANA cloud connection\n\nHANA cloud connection proxy is using SNI which does require a TLS connection.\nAs default one can rely on the root certificate set provided by the host, which already comes with the nessecary\nDigiCert certificates (CA, G5).\nFor more information on [Go](https://go.dev/) tls certificate handling, please see https://pkg.go.dev/crypto/tls#Config.\n\nAssuming the HANA cloud 'endpoint' is \"something.hanacloud.ondemand.com:443\". Then the dsn should look as follows:\n\n```\n\"hdb://\u003cUSER\u003e:\u003cPASSWORD\u003e@something.hanacloud.ondemand.com:443?TLSServerName=something.hanacloud.ondemand.com\"\n```\n\nwith:\n- TLSServerName same as 'host'\n\n## Specific root certificate\nIn case a specific root certificate (e.g. self-signed) would be needed, the TLSRootCAFile DSN parameter needs to\npoint to the location in the filesystem where a root certificate file in 'pem-format' is stored.\n\n## Tests\n\nTo run the driver integration tests a HANA Database server is required. The test user must have privileges to create database schemas.\n\nSet environment variable GOHDBDSN:\n\n```\n#linux example\nexport GOHDBDSN=\"hdb://user:password@host:port\"\ngo test\n```\n\nUsing the Go build tag 'unit' only the driver unit tests will be executed (no HANA Database server required):\n\n```\ngo test --tags unit\n```\n\n## Features\n\n* Native Go implementation (no C libraries, CGO).\n* Go \u003chttp://golang.org/pkg/database/sql\u003e package compliant.\n* Support of database/sql/driver Execer and Queryer interface for parameter free statements and queries.\n* Support of 'bulk' query execution.\n* Support of UTF-8 to / from CESU-8 encodings for HANA Unicode types.\n* Built-in support of HANA decimals as Go rational numbers \u003chttp://golang.org/pkg/math/big\u003e.\n* Support of Large Object streaming.\n* Support of Stored Procedures with table output parameters.\n* Support of TLS TCP connections.\n* Support of little-endian (e.g. amd64) and big-endian architectures (e.g. s390x).\n* Support of [driver connector](https://golang.org/pkg/database/sql/driver/#Connector).\n* Support of [PBKDF2](https://tools.ietf.org/html/rfc2898) authentication as default and standard user / password as fallback.\n* Support of client certificate (X509) and JWT (JSON Web Token) authentication.\n* [Prometheus](https://prometheus.io) collectors for driver and extended database statistics.\n* Support of [scanning database rows into go structs](https://pkg.go.dev/github.com/SAP/go-hdb/driver#StructScanner).\n\n## Dependencies\n\n* Please see [go.mod](https://github.com/SAP/go-hdb/blob/main/go.mod).\n\n## Licensing\n\nSAP SE or an SAP affiliate company and go-hdb contributors. Please see our [LICENSE](LICENSE.md) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/go-hdb).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsap%2Fgo-hdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsap%2Fgo-hdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsap%2Fgo-hdb/lists"}