{"id":15024016,"url":"https://github.com/sap/go-hdb","last_synced_at":"2026-05-04T19:01:35.585Z","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-05-04T19:01:35.577Z","avatar_url":"https://github.com/SAP.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"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, a working Go environment of the [latest or second latest Go version](https://golang.org/dl/) is required.\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\nThe HANA cloud connection proxy uses SNI, which requires a TLS connection.\nBy default, one can rely on the root certificate set provided by the host, which already comes with the necessary\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\", 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\nwhere:\n- TLSServerName: same as 'host'\n\n## Specific Root Certificate\nIf a specific root certificate (e.g. self-signed) is needed, the TLSRootCAFile DSN parameter must point to the location in the file system where the 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 the 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, no CGO.\n* Compliant with the Go [database/sql](https://golang.org/pkg/database/sql) package.\n* UTF-8 to/from CESU-8 encoding for HANA Unicode types.\n* HANA decimals as Go rational numbers via [math/big](http://golang.org/pkg/math/big).\n* Large Object streaming.\n* 'Bulk' query execution.\n* Stored Procedures with table output parameters.\n* Parameter free statements and queries via Execer and Queryer interfaces.\n* TLS TCP connections.\n* Little-endian (e.g. amd64) and big-endian (e.g. s390x) architecture support.\n* [Driver connector](https://golang.org/pkg/database/sql/driver/#Connector) interface.\n* [PBKDF2](https://tools.ietf.org/html/rfc2898) authentication as default, standard user/password as fallback.\n* LDAP, client certificate (X509) and JWT (JSON Web Token) authentication.\n* [Prometheus](https://prometheus.io) collectors for driver and extended database statistics.\n* [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\n## AI Assistance\n\nThis project integrates AI into its development practices. Contributors are expected to review and take ownership of all AI-assisted changes.\n","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"}