databaseconnector

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package databaseconnector connects to HANA databases with go-hdb driver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(p Params) (*sql.DB, error)

Connect creates a SQL connection to a HANA database utilizing the go-hdb driver.

Types

type Params

type Params struct {
	Username       string
	Password       string
	Host           string
	Port           string
	EnableSSL      bool
	HostNameInCert string
	RootCAFile     string
}

Params is a struct which holds the information required for connecting to a database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL