datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
donavan 2021-03-11T12:31:17.172800Z

Hi, I’m trying to setup a dev-local test fixture. In the fixture I create an in memory db but when I run dev-local/release-db on finally it returns nil and when the next test runs the db still has the previous tests data in it. I’m passing the same :db-name and :system to both the creation and release steps. Am I misunderstanding what release-db does?

donavan 2021-03-11T12:31:40.173200Z

I couldn’t find any API docs for dev-local only methods

donavan 2021-03-11T12:33:08.173700Z

I can gensym the db-name but I’d rather the memory be released

donavan 2021-03-11T12:46:56.174700Z

I’ve just gone with delete-database for now (what is the purpose of release-db then?)

favila 2021-03-11T12:49:05.175500Z

Releasedb releases in-process resources related to the connection

favila 2021-03-11T12:50:56.177300Z

You would use it in a repl to reset your state and free memory and threads without deleting data; you probably wouldn’t ever use it in a production application.

donavan 2021-03-11T13:14:14.177500Z

Ah ok, thanks!

raspasov 2021-03-11T20:46:11.179200Z

Do you guys know of any graphical UI for browsing Datomic data? (apart from Datomic Console)

raspasov 2021-03-11T20:47:03.179800Z

I’m thinking something in the style of Postico https://eggerapps.at/postico/ (for Postgres) or Sequel Pro (http://sequelpro.com) for MySQL

JB 2021-03-13T07:22:45.197Z

Homebase + #datahike are working on one here https://github.com/homebaseio/datalog-console

👍 1
alexmiller 2021-03-11T20:48:39.180200Z

You can use REBL

👍 1
alexmiller 2021-03-11T20:49:14.181200Z

Or if you use Datomic Analytics, lots of sql tools can work with it

raspasov 2021-03-11T20:54:06.181500Z

Going to explore REBL, thanks!