Documentation ¶
Overview ¶
Package hdb defines hdb specific data structures used by the driver.
Index ¶
- Constants
- type DBConnectInfo
- type Version
- func (vn Version) BuildID() uint64
- func (v *Version) Compare(v2 *Version) int
- func (v *Version) HasFeature(feature uint64) bool
- func (vn Version) Major() uint64
- func (vn Version) Minor() uint64
- func (vn Version) Patch() uint64
- func (vn Version) Revision() uint64
- func (vn Version) SPS() uint64
- func (vn Version) String() string
Constants ¶
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
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 ¶
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 ¶
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 ¶
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.