This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require '[datomic.api :as d]) | |
| (defn maybe-assoc [m k v] | |
| (if v (assoc m k v) m)) | |
| (defmacro defn-db [name & args] | |
| (let [[doc-string & args] (if (string? (first args)) args (cons nil args)) | |
| [attr-map & args] (if (map? (first args)) args (cons {} args)) | |
| [[& params] & body] args |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns datomic-helpers | |
| (:require [datomic.api :as d])) | |
| ;;; Expose Datomic vars here, for convenience | |
| ;;; Ring middleware | |
| (defn wrap-datomic | |
| "A Ring middleware that provides a request-consistent database connection and | |
| value for the life of a request." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include Opscode::Aws::Ec2 | |
| #Auto locates and attached ebs devices based on the data bag they reside in. The following test cases need to be performed | |
| # Create multiple resources with new node: PASS | |
| # | |
| # Re-attach multiple resources after a reboot: PASS | |
| # | |
| # Create resources across 2 runs. First run creates first raid set, second run re-attaches then creates: PASS | |
| # |
NewerOlder