1
0
Fork 0

Only offer support checkpointing modes

master
Philip O'Toole 8 months ago
parent 958b67908b
commit cf49cb1fc4

@ -59,20 +59,14 @@ var (
type CheckpointMode int
const (
// CheckpointPassive instructs the checkpoint to run in passive mode.
CheckpointPassive CheckpointMode = iota
// CheckpointFull instructs the checkpoint to run in full mode.
CheckpointFull
// CheckpointRestart instructs the checkpoint to run in restart mode.
CheckpointRestart
CheckpointRestart CheckpointMode = iota
// CheckpointTruncate instructs the checkpoint to run in truncate mode.
CheckpointTruncate
)
var (
checkpointPRAGMAs = map[CheckpointMode]string{
CheckpointPassive: "PRAGMA wal_checkpoint(PASSIVE)",
CheckpointFull: "PRAGMA wal_checkpoint(FULL)",
CheckpointRestart: "PRAGMA wal_checkpoint(RESTART)",
CheckpointTruncate: "PRAGMA wal_checkpoint(TRUNCATE)",
}

Loading…
Cancel
Save