ReferencingCodingStorage

open class ReferencingCodingStorage : CodingStorage

A CodingStorage that writes the meta on it’s base path back to another storage.

This storage will writeback the meta stored to the base path to reference.

properties

init

  • Creates a new ReferencingCodingStorage for base path that writes back to the given reference and uses storage as underlying delegate.

    storage needs to be able to store a meta at basePath.

    Declaration

    Swift

    public init(referencing reference: Reference, delegatingTo storage: CodingStorage, at basePath: [CodingKey])

coding storage functionality

  • Declaration

    Swift

    open subscript(codingPath: [CodingKey]) -> Meta { get set }
  • Declaration

    Swift

    open func storesMeta(at codingPath: [CodingKey]) -> Bool
  • Declaration

    Swift

    open func store(meta: Meta, at codingPath: [CodingKey]) throws
  • Declaration

    Swift

    open func storePlaceholder(at codingPath: [CodingKey]) throws
  • Declaration

    Swift

    open func remove(at codingPath: [CodingKey]) throws -> Meta?
  • Declaration

    Swift

    open func fork(at codingPath: [CodingKey]) -> CodingStorage