Fork me on GitHub

If you have an attribute that is of type 'uuid' do you still need to declare that it is unique identity to use it as a lookup ref or is that done automatically because it's of type uuid?


you have to declare uniqueness yourself, @alwaysbcoding


@bhagany - that’s correct, overzealous documentation of db descriptors specifically. Wasn’t meant to limit args to dbs but of course the ‘Vector of maps’ language was incorrect and did just that. Fix to REST docs has now been made.


is there a library … or best practice … or recommended example 😉 for managing schemas? Something akin to rails db:create and db:migrate (but without necessarily implying that it be otherwise similar to rails).


@curtosis: Look for "Conformity" by Ryan Neufeld for one example.


Remember that schema is immutable like everything else in Datomic. You can always add new attributes, but it's very rare to replace or change them (once you have data in production).


+1 on conformity. Yeller's been using it in prod for a year and then some, been very happy with it.


thanks! conformity seems pretty close to what I was looking for. (I also happen to think immutable schema is a pretty good thing.)


the datomic way if you really want to mutate schema is to do it via backup/restore, but that's a whole bunch of work (intentionally so, I think)


yeah… changing attributes gets you into some bad places wrt temporal consistency.


@bkamphaus - great, thanks!