Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Printing Datomic database values dumps the whole database #111

@PEZ

Description

@PEZ

Not sure this is an issue that belongs here, but trying.

In this file: https://github.com/PEZ/nrepl-pprint-datomic/blob/master/src/nrepl_pprint_datomic/core.clj

There is this code:

@(d/transact conn [{:db/doc "Hello world"}])

Evaluating it w/o pretty printing I get:

{:db-before datomic.db.Db@defa54b7, :db-after datomic.db.Db@270efa27, :tx-data [#datom[13194139534318 50 #inst "2019-10-19T12:34:49.714-00:00" 13194139534318 true] #datom[17592186045423 62 "Hello world" 13194139534318 true]], :tempids {-9223301668109598140 17592186045423}}

But with zprint printing the content of the two database values are printed, which is a large printout (depending on the database it can get really huge).

Is there a way I can tell zprint to print just the references to the values, like ”normal” printing does?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions