Fork me on GitHub
#datalevin
<
2022-09-07
>
cgrand09:09:09

Hi! Is there a way to emulate db-with with datalevin?

Huahai20:09:39

db-with is a function, just not in the docs, because Datalevin is not an immutable db, so there’s no such thing as “DB as a value”. The DB is going to mutate.

Huahai20:09:44

so db-with will return the mutated db, but the old db is mutated as well, you won’t have an intact old db.

Huahai20:09:05

0.6.17 will have a function called tx-data->simulated-report that will simulate a transaction, but won’t persist the changes, which might be useful for some.

👍 1
Huahai21:09:24

0.6.17 is released

🎉 1
lread21:09:26

Congrats @huahaiy! Happy to PR a cljdoc badge in your README if you’d like. If not, that’s fine too!

Huahai21:09:03

Will appreciate it. Thanks for the help!

lread21:09:34

PR available, put it as first badge but we can move it if you like.