MedicationScheduleRepository
public struct MedicationScheduleRepository
Repository for the app to the MedicationSchedule data layer handling the syncing between its data stores.
-
Create a MedicationSchedule
Declaration
Swift
public var create: @Sendable (MedicationSchedule) async throws -> Void -
Load all MedicationSchedule
Declaration
Swift
public var readAll: @Sendable () async throws -> [MedicationSchedule] -
Load a MedicationSchedule with
taskIdDeclaration
Swift
public var read: @Sendable (_ taskId: String) async throws -> MedicationSchedule? -
Delete all passed MedicationSchedule
Declaration
Swift
public var delete: @Sendable ([MedicationSchedule]) async throws -> Void -
Default init for MedicationScheduleRepository
Declaration
Swift
public init( create: @escaping @Sendable (MedicationSchedule) async throws -> Void, readAll: @escaping @Sendable () async throws -> [MedicationSchedule], read: @escaping @Sendable (String) async throws -> MedicationSchedule?, delete: @escaping @Sendable ([MedicationSchedule]) async throws -> Void )
View on GitHub
MedicationScheduleRepository Structure Reference