Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupOptions ¶
type BackupOptions struct {
Compress bool
BatchSize int // Default: 5000
MaxWorkers int // Concurrent tables (default: 5)
Exclude []string
Logger *slog.Logger
SQLPool sql.DBStats
}
BackupOptions with performance tunables.
type Dumper ¶
type Dumper interface {
ListTables(ctx context.Context) ([]string, error)
DumpSchema(ctx context.Context, table string) (string, error) // CREATE TABLE string
DumpData(ctx context.Context, table string, batchSize int) ([]string, error) // Batched INSERT/JSON strings
Close() error
}
Dumper defines the interface for database-specific dumping.
Click to show internal directories.
Click to hide internal directories.