datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
Ben Sless 2021-01-12T13:45:44.235700Z

Hi all, is there a tool or program you're using to visualize your schema? Ideally I'd like to produce something like https://cdn.nextjournal.com/data/QmNuS8YKMJYgBa47oN8Y6P6rKF5um7zm9TwrAWUvMtyHEE?filename=relationships.png&content-type=image/png. Currently using graphviz and it looks a bit haphazard

Joe Lane 2021-01-12T13:50:54.237800Z

Iโ€™ve seen https://c-132.com/schema-cartographer/ used. There is a risk of thinking too rectangular when thinking in entities. Just keep in mind that attributes are global and you can make more general attributes your system.

Ben Sless 2021-01-13T13:49:48.251100Z

Looks like you can get really close by using graphviz records

Ben Sless 2021-01-12T13:54:31.237900Z

Like I mentioned, I'm currently using graphviz, so it looks more like the aftermath of a cat finding a ball of yarn. But you bring up an interesting point, while attributes are global, in all examples I saw they were usually coupled to the entity semantically, i.e. :entity/attribute

๐Ÿ˜‚ 1
cjmurphy 2021-01-12T15:14:24.238400Z

They can be coupled as :entity1/attribute1 , but actual runtime instances of entities can be made up of attributes from many different schema entities, so :entity1/attribute1 can be in the same runtime entity as :entity2/attribute1 .

cjmurphy 2021-01-12T15:47:26.238700Z

If :entity1/attribute1 was a general kind of attribute then it would find itself in many runtime entities, so :entity2/id , entity3/id etc...

Joe Lane 2021-01-12T18:04:26.240200Z

Also, FWIW @ben.sless that schema diagram is hand made with omnigraffle. There isnโ€™t any magic automation for it.

Ben Sless 2021-01-12T18:19:29.240400Z

Ah, that's unfortunate

jaret 2021-01-12T19:46:54.243100Z

Hi all! We're looking to get an informal assessment of how Datomic Cloud customers access cloud. If you wouldn't mind taking some time to fill out he poll on our forums here it would be much appreciated:

jaret 2021-01-12T19:47:17.243900Z

Feel free to add any thoughts/wishes/context/desires in the thread under the poll.

john-shaffer 2021-01-12T21:08:44.245900Z

I just started an Ion, but I guess Datomic runs on JVM 8 and I hadn't considered that. I'm accustomed to using the newer date/time classes on JVM 11. What do you typically use for dates & times on older JVMs? Is there a popular library?

favila 2021-01-12T21:14:06.246Z

Java 8 has the java.time classes

john-shaffer 2021-01-12T21:21:54.246200Z

Thanks. I guess it's just LocalDate/ofInstant that's missing, and I can adjust to that

john-shaffer 2021-01-12T21:24:39.246400Z

I should have read the exception more carefully ๐Ÿ˜ถ

ghadi 2021-01-12T22:11:30.248200Z

@claudius.nicolae joda is deprecated

๐Ÿ‘ 2