sqlserver

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AllDatabases = "ALL"
View Source
const BlobNamePrefix = "blob_"
View Source
const LogNamePrefix = "wal_"
View Source
const MaxBlocksPerBlob = 25000 // 50000 actually, but we need some safety margin
View Source
const MaxTransferSize = 4 * 1024 * 1024
View Source
const TimeSQLServerFormat = "Jan 02, 2006 03:04:05 PM"

Variables

View Source
var SystemDbnames = []string{
	"master",
	"msdb",
	"model",
}

Functions

func HandleBackupPush

func HandleBackupPush(dbnames []string, updateLatest bool, compression bool)

func HandleBackupRestore

func HandleBackupRestore(backupName string, dbnames []string, fromnames []string, noRecovery bool)

func HandleDatabaseList

func HandleDatabaseList(backupName string)

func HandleLogPush

func HandleLogPush(dbnames []string, compression bool)

func HandleLogRestore

func HandleLogRestore(backupName string, untilTS string, dbnames []string, fromnames []string, noRecovery bool)

func RunProxy

func RunProxy(folder storage.Folder)

Types

type DatabaseFile

type DatabaseFile struct {
	LogicalName  string
	PhysicalName string
	Type         string
	FileID       int
}

type SentinelDto

type SentinelDto struct {
	Server         string
	Databases      []string
	StartLocalTime time.Time `json:"StartLocalTime,omitempty"`
	StopLocalTime  time.Time `json:"StopLocalTime,omitempty"`
}

func (*SentinelDto) String

func (s *SentinelDto) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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