From cf49cb1fc46fb20d817e99fe54ef815a77fe4a35 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Sat, 27 Jan 2024 17:56:35 -0500 Subject: [PATCH] Only offer support checkpointing modes --- db/db.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/db/db.go b/db/db.go index 7aaecfa6..588bb5de 100644 --- a/db/db.go +++ b/db/db.go @@ -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)", }