Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(dbPath string, dbName string, backupFilePattern string, restoreFilePattern string) *Manager
NewManager creates a new backup manager Each instance of a Manager can run 1 backup or restore at a time (internally uses a mutex) It is safe to create multiple instances of Manager which could run Backups/Restores concurrently
func (*Manager) AddValidationQueries ¶
AddValidationQueries Adds queries to run on a restored database to ensure meets some criteria These queries should cause db.Exec to return error if the database imported is invalid. For example, if the database does not have a vital table
func (*Manager) MakeBackupFile ¶
MakeBackupFile returns a string path of the sqlite database backup
Click to show internal directories.
Click to hide internal directories.