January 2018
Intermediate to advanced
336 pages
7h 56m
English
Persistence protocol consists of upsert, entity, and delete functions, similar to the Consumer service, that are defined in the persistence.clj source file, as follows:
(ns helping-hands.provider.persistence "Persistence Port and Adapter for Provider Service" (:require [datomic.api :as d]));; --------------------------------------------------;; Provider Persistence Port for Adapters to Plug-in;; --------------------------------------------------(defprotocol ProviderDB "Abstraction for provider database" (upsert [this id name mobile since rating] "Adds/Updates a provider entity") (entity [this id flds] "Gets the specified provider with all or requested fields") (delete [this id] "Deletes the specified provider ...
Read now
Unlock full access