democracyworks / datomic-toolbox

Datomic Utility Library
19 stars 0 forks source link

[TH] timestamps function #2

Closed tank157 closed 10 years ago

tank157 commented 10 years ago

Assigning to @tie-rack

Utility function for getting timestamps for an entity. You pass in an (ideally) attribute and a value that can determine the entity, and get back a hash with :created-at, :updated-at, and :timestamps which are all the modification times in ascending order.

I'd like to make a version that works with :db/id, but there's something special about :db/id that I haven't sorted out how to specify it properly yet, and this will work in the meantime for most of our entities.

No particular card for this, it'll get used in some ballot-scout work.