Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Created October 12, 2012 19:34
Show Gist options
  • Save ninjudd/3881046 to your computer and use it in GitHub Desktop.
Save ninjudd/3881046 to your computer and use it in GitHub Desktop.
(-> []
(given (tempid? filenameid) (conj [:db/add filenameid :file/name filename]))
(given (tempid? pathid) (conj [:db/add pathid :file/name path]))
(given (tempid? nodeid) (conj {:db/id nodeid :node/filename filenameid :node/object id}))
(given newpath (conj [:db/add nodeid :node/paths pathid]))
(given (tempid? id) (conj {:db/id id :git/sha sha :git/type type})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment