Fork me on GitHub
#datomic
<
2021-03-11
>
donavan12:03:17

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?

donavan12:03:40

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

donavan12:03:08

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

donavan12:03:56

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

favila12:03:05

Releasedb releases in-process resources related to the connection

favila12:03:56

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.

donavan13:03:14

Ah ok, thanks!

raspasov20:03:11

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

raspasov20:03:03

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

JB07:03:45

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

👍 3
raspasov20:03:06

Going to explore REBL, thanks!

Alex Miller (Clojure team)20:03:14

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