Fork me on GitHub
#datomic
<
2016-08-15
>
timgilbert20:08:39

Say, inside an EDN file I'm running with conformity, is there a way to call (d/squuid)? The context is I'm setting up some sample data and some of my attributes use them

timgilbert20:08:53

...like as external identifiers

timgilbert20:08:00

Right now I'm sort of hacking around it by just specifying #db.id[:db.part/db -1] etc, but they are not technically EIDs so that doesn't seem exactly correct

timgilbert20:08:56

Is this the sort of thing I might use #db/fn for?

atroche22:08:46

@timgilbert: when i needed to do that, i used clojure to generate the EDN (with squuids), then spit it into a file

timgilbert22:08:37

Cool, thanks

timgilbert22:08:27

I'm currently thinking I'll just generate a bunch of UUIDs and just hardcode them in there. It's all fake data anyways