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
coreDataControllerFactoryFactory that is capable of providing a CoreDataController
foregroundQueueread queue, remember never to access the read NSManagedObjects properties/relations on any other queue (Default: DispatchQueue.main)
backgroundQueuewrite 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
View on GitHub
AVSTransactionCoreDataStore Class Reference