This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-28
Channels
- # aleph (16)
- # announcements (7)
- # asami (4)
- # aws (26)
- # babashka (26)
- # babashka-sci-dev (50)
- # beginners (118)
- # biff (7)
- # calva (15)
- # cider (6)
- # clj-kondo (8)
- # cljs-experience (3)
- # clojure (30)
- # clojure-austin (26)
- # clojure-europe (20)
- # clojure-france (2)
- # clojure-ireland (1)
- # clojure-nl (3)
- # clojure-norway (2)
- # clojure-spec (7)
- # clojure-uk (6)
- # clojurescript (12)
- # community-development (5)
- # conjure (1)
- # copenhagen-clojurians (3)
- # core-typed (71)
- # cursive (3)
- # datomic (1)
- # emacs (4)
- # fulcro (2)
- # helix (2)
- # introduce-yourself (3)
- # jobs (1)
- # london-clojurians (6)
- # lsp (122)
- # malli (2)
- # missionary (5)
- # overtone (14)
- # pathom (4)
- # polylith (1)
- # reagent (4)
- # reitit (1)
- # releases (1)
- # shadow-cljs (80)
- # testing (10)
- # tools-deps (6)
- # vim (3)
- # xtdb (19)
I was curious about the HTTP API formats (edn or transit) do they support all the types (like LocalDate/Time/DateTime) and noticed that the OpenAPI doc link at https://docs.xtdb.com/clients/http/#rest-api is broken (leads to NoSuchBucket error pagE)
normally edn doesn't support all the types XTDB can have
> (pr-str (java.time.LocalDate/now))
"#object[java.time.LocalDate 0x60567b9 \"2022-03-28\"]"
so does it have write support and data readers for those?Ah, thanks for reporting the broken link! XT doesn't natively support any extended edn types over http, though I suspect it's possible to make work if really needed
I'm not currently using the HTTP API, just curious... it would be nice if it supported all the types
been dabbling in smalltalk and the kotlin dsl gave me ideas for some sort of ODM (object document mapping) library for persistence... would be an interesting side project in my copious free time
Hi - that's not a supported use-case, but it is technically possible to access the data. Pretty much all the data is encoded with https://github.com/ptaoussanis/nippy though so may be tricky to access within SQL meaningfully 🙂 what's the requirement?
I am using xtdb with a heroku postgresql database. In heroku dataclip you can inspect the data of your database directly.
ah interesting, I hadn't seen dataclips before. Sadly though I don't think you'll have much joy trying to use it to interpret XT's storage format though 😕 (though don't let me discourage you from trying!)
that is an interesting feature, XTDB inspector has the possibility to save a query... though that isn't really meant for public consumption
not saying that that would be as good as the dataclips functionality, but in the same vein at least