mssql

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mssql defines data models for Microsoft SQL Server interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupDatabase

func BackupDatabase(container, user, password, database, filename string) error

func CheckConnection

func CheckConnection(container, user, password string) error

func RestoreDatabase

func RestoreDatabase(container, user, password, backupFile, newDBName, mdfName, ldfName string) (string, error)

Types

type BackupEntry

type BackupEntry struct {
	MdfFile MdfEntry
	LdfFile LdfEntry
}

func InspectBackupFile

func InspectBackupFile(container, user, password, file string) (BackupEntry, error)

type BakFile

type BakFile struct {
	Size, Date, Name string
}

func ListBackupFilesInContainer

func ListBackupFilesInContainer(container, user, password string) ([]BakFile, error)

type DBItem

type DBItem struct {
	Name, ID, Created, State string
}

func GetDatabases

func GetDatabases(container, user, password string) ([]DBItem, error)

type LdfEntry

type LdfEntry struct {
	Name, Size string
}

type MdfEntry

type MdfEntry struct {
	Name, Size, BackupSize string
}

Jump to

Keyboard shortcuts

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