AVSTransactionCoreDataStore

public class AVSTransactionCoreDataStore : AVSTransactionDataStore, CoreDataCrudable

Store for fetching, creating, updating or deleting AVSTransactionEntitys on the provided CoreDataController [REQ:BSI-eRp-ePA:O.Source_2#6] CoreDataStore adapter for AVSTransactionEntitys

  • Initialize a AVSTransaction Core Data Store

    Declaration

    Swift

    public init(
        coreDataControllerFactory: CoreDataControllerFactory,
        foregroundQueue: AnySchedulerOf<DispatchQueue> = AnyScheduler.main,
        backgroundQueue: AnySchedulerOf<DispatchQueue> = DispatchQueue(label: "avsTransaction-queue",
                                                                       qos: .userInitiated)
            .eraseToAnyScheduler()
    )

    Parameters

    coreDataControllerFactory

    Factory that is capable of providing a CoreDataController

    foregroundQueue

    read queue, remember never to access the read NSManagedObjects properties/relations on any other queue (Default: DispatchQueue.main)

    backgroundQueue

    write queue (Default: DispatchQueue(label: “profile-queue”, qos: .userInitiated))

  • Declaration

    Swift

    public func fetchAVSTransaction(by identifier: UUID) -> AnyPublisher<AVSTransaction?, LocalStoreError>
  • Declaration

    Swift

    public func listAllAVSTransactions() -> AnyPublisher<[AVSTransaction], LocalStoreError>
  • Declaration

    Swift

    public func save(avsTransactions: [AVSTransaction]) -> AnyPublisher<[AVSTransaction], LocalStoreError>
  • Declaration

    Swift

    public func delete(avsTransactions: [AVSTransaction]) -> AnyPublisher<[AVSTransaction], LocalStoreError>
  • Declaration

    Swift

    public enum Error : Swift.Error