db

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeDatabase

func MergeDatabase(ctx context.Context, sourceDB, destDB string) error

func NeedsMigration

func NeedsMigration(db *sql.DB) bool

func RunMigrations

func RunMigrations(dbPath string) error

func SetupDatabase

func SetupDatabase(dbPath string) (*sql.DB, error)

Types

type DumpInfo

type DumpInfo struct {
	DumpID         int64
	IsAmend        bool
	ProcessedPaths map[string]struct{}
}

DumpInfo is a structure that holds dump information

func CreateOrResumeDump

func CreateOrResumeDump(db *sql.DB, storageName string, amend bool) *DumpInfo

CreateOrResumeDump creates a new dump or resumes an existing one

Jump to

Keyboard shortcuts

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