datomic 2026-04-16

Given a database value, is it possible to determine whether it is an in-memory or persisted database?

An in-memory database will only have a :memidx tier and no other.

2

...but why do you want this?

To identify whether I'm in a dev or test environment (but I've thought better of doing it this way)