odbch

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NativeClient11 is an Native SQL Server Driver version 11
	NativeClient11 string = "SQL Server Native Client 11.0"

	// NativeClient10 is an Native SQL Server Driver version 10
	NativeClient10 string = "SQL Server Native Client 10.0"

	// ODBC18 is an ODBC SQL Server Driver version 18
	ODBC18 string = "ODBC Driver 18 for SQL Server"

	// ODBC17 is an ODBC SQL Server Driver version 17
	ODBC17 string = "ODBC Driver 17 for SQL Server"

	// ODBC13 is an ODBC SQL Server Driver version 13
	ODBC13 string = "ODBC Driver 13 for SQL Server"

	// ODBC11 is an ODBC SQL Server Driver version 11
	ODBC11 string = "ODBC Driver 11 for SQL Server"

	// GenericODBC is the Generic ODBC SQL Server driver
	GenericODBC string = "SQL Server"
)

Variables

View Source
var ErrInvalidDriver = errors.New("invalid driver")

ErrInvalidDriver indiates that an ODBC SQL Server driver is invalid

View Source
var ErrNoDrivers = errors.New("no drivers found")

ErrNoDrivers is returned if no valid ODBC SQL Server drivers are found

Functions

func BestDriver

func BestDriver() (string, error)

BestDriver returns the "best" driver installed on the machine

func InstalledDrivers

func InstalledDrivers() ([]string, error)

InstalledDrivers returns the available SQL Server drivers on the computer

func ValidDriver

func ValidDriver(d string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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