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