open-vault/vendor/github.com/SAP/go-hdb
2017-08-02 12:53:45 -04:00
..
driver Update vendored library go-hdb (#3097) 2017-08-02 12:53:45 -04:00
internal Update vendored library go-hdb (#3097) 2017-08-02 12:53:45 -04:00
LICENSE Added HANA database plugin (#2811) 2017-07-07 13:11:23 -07:00
NOTICE Bump deps 2017-07-18 10:15:54 -04:00
README.md Update vendored library go-hdb (#3097) 2017-08-02 12:53:45 -04:00

go-hdb

GoDoc

Go-hdb is a native Go (golang) HANA database driver for Go's sql package. It implements the SAP HANA SQL command network protocol:
http://help.sap.com/hana/SAP_HANA_SQL_Command_Network_Protocol_Reference_en.pdf

Installation

go get github.com/SAP/go-hdb/driver

Documentation

API documentation and documented examples can be found at https://godoc.org/github.com/SAP/go-hdb/driver.

Tests

For running the driver tests a HANA Database server is required. The test user must have privileges to create a schema.

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

Features

  • Native Go implementation (no C libraries, CGO).
  • Go http://golang.org/pkg/database/sql package compliant.
  • Support of databse/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.
  • Build-in support of HANA decimals as Go rational numbers http://golang.org/pkg/math/big.
  • Support of Large Object streaming.
  • Support of Stored Procedures with table output parameters.

Dependencies

Todo

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