Skip to content

Instantly share code, notes, and snippets.

@Jaretbinford
Created July 25, 2018 15:10
Show Gist options
  • Save Jaretbinford/6356ea6273d9de6899876dbd9b43453c to your computer and use it in GitHub Desktop.
Save Jaretbinford/6356ea6273d9de6899876dbd9b43453c to your computer and use it in GitHub Desktop.
Retracting unique
(d/transact conn {:tx-data [[:db/retract :abstractRelease/gid :db/unique :db.unique/identity]]})
=>
{:db-before {:database-id "ba146c1e-3d87-49d9-8c6c-f2a2512fdf51",
:db-name "mbrainz-subset",
:t 33,
:next-t 34,
:type :datomic.client/db},
:db-after {:database-id "ba146c1e-3d87-49d9-8c6c-f2a2512fdf51",
:db-name "mbrainz-subset",
:t 34,
:next-t 35,
:type :datomic.client/db},
:tx-data [#datom[13194139533346 50 #inst"2018-07-25T15:09:22.690-00:00" 13194139533346 true]
#datom[80 42 38 13194139533346 false]
#datom[0 19 80 13194139533346 true]],
:tempids {}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment