WALCheckpointType

public enum WALCheckpointType

Possible write-ahead log (WAL) checkpoint types.

  • Checkpoint as many frames as possible without waiting for any database readers or writers to finish

    Declaration

    Swift

    case passive
  • Blocks until there is no writer and all readers are reading from the most recent database snapshot then checkpoints all frames

    Declaration

    Swift

    case full
  • Same as WALCheckpointType.full except after checkpointing it blocks until all readers are reading from the database file

    Declaration

    Swift

    case restart
  • Same as WALCheckpointType.restart except it also truncates the log file prior to a successful return

    Declaration

    Swift

    case truncate