Skip to content

Instantly share code, notes, and snippets.

@domkm

domkm/tx.clj Secret

Created October 23, 2015 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domkm/fda80d4d3e948ae31140 to your computer and use it in GitHub Desktop.
Save domkm/fda80d4d3e948ae31140 to your computer and use it in GitHub Desktop.
Datomic Transaction Circular Reference
[
[
:db/add
#db/id [:db.part/tx]
#db/id [:db.part/db -1]
#inst "1970"
]
{
:db.install/_attribute :db.part/db
:db/cardinality :db.cardinality/one
:db/doc "A transaction's unique migration instant."
:db/id #db/id [:db.part/db -1]
:db/ident :transaction/migration
:db/index true
:db/unique :db.unique/value
:db/valueType :db.type/instant
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment