sqlserver

package
v0.0.0-...-1d9206b Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major    int
	Minor    int
	Build    int
	Revision int
}

Version represents a Microsoft SQL Server version (e.g., "15.0.2095.3", "16.0.4165.4")

func NewVersion

func NewVersion(ver string) (Version, error)

NewVersion returns a parsed version

func (Version) Compare

func (v1 Version) Compare(v2 Version) int

Compare returns an integer comparing two versions. The result will be 0 if v1==v2, -1 if v1 < v2, and +1 if v1 > v2.

func (Version) String

func (v Version) String() string

String returns the version string

Jump to

Keyboard shortcuts

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