;; Connect to a remote database (def conn (d/connect “datomic:ddb://us-east-1/mb/mbrainz)) ;; Fetch the current database value (def db (d/db conn)) ;; Evaluate a query (d/q […<some query>…] db) ;; Join across multiple databases (d/q […<some query>…] db1 db2) ;; Retrieve an entity (d/entity db 42)
ago (def db-before (d/as-of db <1 week ago>)) ;; Or, pretend to transact new data (def db-later (d/with db <proposed tx data>)) ;; History of a db, in its entirety (d/history db) ;; Listen for new changes (d/tx-report-queue conn) ;; Or, process old ones (d/tx-range (d/log conn) <1 week ago> nil)