Versions in this module Expand all Collapse all v0 v0.4.0 Nov 28, 2026 Changes in this version + const DefaultBusyTimeout + const MigrationLockSuffix + func Check(ctx context.Context, db *sql.DB, o Options) error + func DSN(path string, o Options) (string, error) + func MigrationLock(ctx context.Context, dbPath string) (release func() error, err error) + type BackupFile struct + ModTime time.Time + Name string + Size int64 + type BackupLoop struct + func (l *BackupLoop) Done() <-chan struct{} + func (l *BackupLoop) Stop() + type BackupResult struct + Err error + Made bool + Next time.Duration + Path string + type BackupSchedule struct + Interval time.Duration + LockPath string + Now func() time.Time + Report func(BackupResult) + Retry time.Duration + Timeout time.Duration + type Backups struct + Dir string + Keep int + Layout string + Location *time.Location + Prefix string + func (b Backups) List() ([]BackupFile, error) + func (b Backups) Run(ctx context.Context, db *sql.DB, now time.Time) (path string, made bool, err error) + func (b Backups) Start(ctx context.Context, db *sql.DB, s BackupSchedule) (*BackupLoop, error) + type Options struct + BusyTimeout time.Duration + SecureDelete bool v0.2.0 Nov 22, 2026 v0.1.0 Nov 21, 2026