ReadOnlyDocument

public class ReadOnlyDocument : ReadOnlyDictionaryObject

Readonly version of the Document.

  • id

    The document’s ID.

    Declaration

    Swift

    public var id: String
  • Sequence number of the document in the database. This indicates how recently the document has been changed: every time any document is updated, the database assigns it the next sequential sequence number. Thus, if a document’s sequence property changes that means it’s been changed (on-disk); and if one document’s sequence is greater than another’s, that means it was changed more recently.

    Declaration

    Swift

    public var sequence: UInt64
  • Is the document deleted?

    Declaration

    Swift

    public var isDeleted: Bool
  • Equal to operator for comparing two ReadOnlyDocument object.

    Declaration

    Swift

    public static func == (doc1: ReadOnlyDocument, doc: ReadOnlyDocument) -> Bool