DBFILESWriteModeTag

Objective-C

enum DBFILESWriteModeTag : NSInteger {}

Swift

@frozen enum DBFILESWriteModeTag : Int

The DBFILESWriteModeTag enum type represents the possible tag states with which the DBFILESWriteMode union can exist.

  • Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, “document.txt” might become “document (2).txt”.

    Declaration

    Objective-C

    DBFILESWriteModeAdd

    Swift

    case add = 0
  • Always overwrite the existing file. The autorename strategy is the same as it is for add.

    Declaration

    Objective-C

    DBFILESWriteModeOverwrite

    Swift

    case overwrite = 1
  • Overwrite if the given “rev” matches the existing file’s “rev”. The autorename strategy is to append the string “conflicted copy” to the file name. For example, “document.txt” might become “document (conflicted copy).txt” or “document (Panda’s conflicted copy).txt”.

    Declaration

    Objective-C

    DBFILESWriteModeUpdate

    Swift

    case update = 2