Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceb6d03

Browse files
author
Ryan Neufeld
committed
Merge pull request clojure-cookbook#408 from catalan42/patch-4
Update 6-13_transact-retract-data.asciidoc
2 parents 9fc7c1a + 170628e commit ceb6d03

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

06_databases/6-13_transact-retract-data.asciidoc

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,15 @@ You need to remove data from your Datomic database.(((Datomic database, removing
1212
To remove a value for an attribute, you should use the +:db/retract+
1313
operation in transactions.
1414

15-
To follow along with this recipe, complete the steps in
16-
the solutions to <<sec_datomic_connect_to_datomic>>, and
17-
<<sec_datomic_schema>>. After doing this, you will have a
18-
connection, +conn+, and a schema installed against which you can
19-
insert data.
15+
To follow along with this recipe, first complete the recipes for <<sec_datomic_connect_to_datomic>>, and
16+
<<sec_datomic_schema>>.
2017

2118
To start things off, add a user, Barney Rubble, and verify that he has an email address:
2219

2320
[source,clojure]
2421
----
2522
(require '[datomic.api :as d])
2623
27-
;; Please evaluate "Connecting to a Datomic Database" and
28-
;; "Defining a Schema for a Datomic Database" before
29-
;; running these examples
30-
3124
(def new-id (d/tempid :db.part/user))
3225
3326
(def tx-result @(d/transact conn

0 commit comments

Comments
 (0)