mssql

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(u string, logger DebugOnlyLogger) (*url.URL, error)

ParseURL tries to parse an MSSQL URL string into a URL object.

Types

type DebugOnlyLogger

type DebugOnlyLogger interface {
	Debug(msg string, args ...interface{})
}

ParseURL is called also from pkg/api/datasource/validation.go, which uses a different logging interface, so we have a special minimal interface that is fulfilled by both places.

type HostTransportDialer

type HostTransportDialer struct {
	Dialer proxy.ContextDialer
	Host   string
}

func (HostTransportDialer) DialContext

func (m HostTransportDialer) DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)

func (HostTransportDialer) HostName

func (m HostTransportDialer) HostName() string

type Service

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

func ProvideService

func ProvideService(cfg *setting.Cfg) *Service

func (*Service) CheckHealth

CheckHealth pings the connected SQL database

func (*Service) QueryData

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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