mssql

package
v0.0.0-...-74cebaa Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (*sqlx.DB, error)

Types

type DBListEntry

type DBListEntry struct {
	Name          string
	Owner         string
	Size          int
	RecoveryModel string
}

func ListDatabases

func ListDatabases(db *sqlx.DB) ([]DBListEntry, error)

type ServerInfo

type ServerInfo struct {
	Version          string
	ProductLevel     string
	Edition          string
	EngineEdition    string
	MachineName      string
	IsClustered      bool
	Collation        string
	CLRVersion       string
	ProcessorCount   sql.NullInt32
	PhysicalMemoryMB sql.NullInt32
}

func GetServerInfo

func GetServerInfo(db *sqlx.DB) (ServerInfo, error)

Jump to

Keyboard shortcuts

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