hdb

package
v0.106.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package hdb defines hdb specific data structures used by the driver.

Index

Constants

View Source
const (
	HDBFNone              uint64 = 1 << iota
	HDBFServerVersion            // HANA reports server version in connect options
	HDBFConnectClientInfo        // HANA accepts ClientInfo as part of the connection process
)

HDBVersion feature flags.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConnectInfo added in v0.105.2

type DBConnectInfo struct {
	DatabaseName string
	Host         string
	Port         int
	IsConnected  bool
}

DBConnectInfo defines the connection information attributes returned by hdb.

func (*DBConnectInfo) String added in v0.105.2

func (ci *DBConnectInfo) String() string

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version is representing a hdb version.

func ParseVersion

func ParseVersion(s string) *Version

ParseVersion parses a semantic hdb version string field.

func (Version) BuildID

func (vn Version) BuildID() uint64

BuildID returns the build id field of a HDBVersionNumber.

func (*Version) Compare

func (v *Version) Compare(v2 *Version) int

Compare compares the version with a second version v2. The result will be

0 in case the two versions are equal,

-1 in case version v has lower precedence than c2,

1 in case version v has higher precedence than c2.

func (*Version) HasFeature

func (v *Version) HasFeature(feature uint64) bool

HasFeature returns true if HDBVersion does support feature - false otherwise.

func (Version) Major

func (vn Version) Major() uint64

Major returns the major field of a hdbVersionNumber.

func (Version) Minor

func (vn Version) Minor() uint64

Minor returns the minor field of a HDBVersionNumber.

func (Version) Patch

func (vn Version) Patch() uint64

Patch returns the patch field of a HDBVersionNumber.

func (Version) Revision

func (vn Version) Revision() uint64

Revision returns the revision field of a HDBVersionNumber.

func (Version) SPS

func (vn Version) SPS() uint64

SPS returns the sps field of a HDBVersionNumber.

func (Version) String

func (vn Version) String() string

Jump to

Keyboard shortcuts

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