Fork me on GitHub
#keechma
<
2016-06-14
>
bocaj20:06:12

How can I deref and print app-db from the repl? I'm looking at the place-my-order demo

bocaj20:06:41

! also, first time I've been able to get through a clojurescript ui tutorial! Thanks for the great documentation

roberto20:06:48

ah, I remember doing that, but don’t recall off the top of my head. I think it depends if you are using edb

bocaj20:06:25

@roberto, Yes, using edb. I like the idea. But I'm trying to follow how state is passed around...not global

roberto20:06:35

haven’t done front end in months, so a little rusty right now.

roberto20:06:47

so, basically, wherever you initialize your edb instance

roberto20:06:52

you can switch to that ns, and inspect it

roberto20:06:18

use the same functions provided by edb to do so, you can also inspect the data structure.

roberto20:06:23

I remember doing both

bocaj20:06:50

yes, that's it

bocaj20:06:05

the demo would be

client.edb/dal

roberto20:06:07

yeah, so when you initialize your store, it is accessible from the ns where you did that

roberto20:06:32

then you can just inspect it or use the edb functions to query it

bocaj21:06:17

perfect. I had misnamed the :id function for the edb

edb/make-dbal {:ent {:id :ent-id}}