The issue here is that the d/create-database
requires a map of arguments.
https://docs.datomic.com/client-api/datomic.client.api.html#var-create-database
To correctly create a database the the line should have:
(d/create-database client {:db-name db-name})
However this represents an issue with dev-local clients that we should address, in that your create-database call returned true without actually creating a DB. We are investigating further but when create-database
is supplied incorrect arguments it should throw an exception instead of returning true
:
;Cloud client
(d/create-database client "testing")
Execution error (ExceptionInfo) at datomic.client.impl.shared/api->client-req (shared.clj:258).
Expected a map
;Dev local client
(d/create-database client "testing")
=> true