This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-13
Channels
- # babashka (45)
- # babashka-sci-dev (15)
- # beginners (72)
- # biff (4)
- # calva (3)
- # clj-on-windows (67)
- # clj-otel (1)
- # cljfx (7)
- # clojure (74)
- # clojure-austin (1)
- # clojure-dev (4)
- # clojure-europe (6)
- # clojure-gamedev (1)
- # clojure-germany (5)
- # clojure-losangeles (6)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojured (2)
- # clojurescript (42)
- # core-typed (2)
- # cursive (4)
- # emacs (18)
- # events (1)
- # fulcro (13)
- # humbleui (8)
- # introduce-yourself (2)
- # kaocha (11)
- # leiningen (5)
- # lsp (16)
- # malli (8)
- # off-topic (69)
- # pathom (38)
- # pedestal (3)
- # reagent (17)
- # releases (3)
- # shadow-cljs (10)
- # spacemacs (6)
- # sql (1)
- # tools-deps (5)
- # xtdb (20)
Hello, again me hope you don't mind.
Question regarding entities in general.
I was looking for an answer here regarding updated-at
, created-at
attributes i'd like to have in my entities.
and i found
https://clojurians.slack.com/archives/CG3AM2F7V/p1634288129331500
If i understood correctly time tracking would become available within next major version, this was 6 months ago so i am wondering if that's the case?
Should i be adding new attributes to my entities or there is some XTDB mechanism that i am unaware of that i can utilize to get this information?
Hey 🙂 questions are always welcome! If you need to search for these times as part of your general querying, then yes you should be adding new (regular, duplicated) attributes to make them available for querying within Datalog. You could also create reified transaction entities and join against those for searching tx-times. If you only need to retrieve these times, then the solution in the gist I shared in that thread may be enough. If you need anything more advanced, like temporal joins or windowing, then you will still need to wait for the next major version - and in the meantime make do with pulling out all the necessary raw data for processing in normal Clojure. I can't share a firm roadmap just yet but I'd be very happy to chat about it if you're curious...
I'm using a standalone node while trying to bootstrap a project, but find the entries keep disappearing. Is that expected? I'm not restarting the repl or in any obvious way re-defing the db node.
"standalone", as in, in-memory?
That's peculiar. Is your code up somewhere we can glance at? I'm guessing this will be really easy for someone to diagnose, but it's hard to know based on that description.
so you're just doing something like (def my-node (xt/start-node {}))
? with an empty opts map?
The data persisted through the night 😉 So that's a win! Having some other troubles with running tests that I'll try to work through today.
Excellent, I'm glad to hear you're over that initial hump (though I'm still curious as to what might have been happening!)
I'm also very curious. That's peculiar behaviour. And probably something we want to document, assuming it's consistent with :RunTests
.
It was definitely consistent with :RunTests. Should I have done anything special beyond (def node (xt/start-node {}))
?
And I used lein ring server-headless
to start the repl, if that makes any difference.
Nothing special should be required... but the :reload
on line 2541 of https://github.com/tpope/vim-fireplace/blob/master/autoload/fireplace.vim#L2516 seems maybe suspicious? Sorry I'm not more help here... I've never once in my life looked at vimscript before.
To diagnose from the outside, it might be interesting to see if running the tests from another test runner entirely still causes you trouble.