This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-26
Channels
- # announcements (1)
- # atom-editor (7)
- # babashka (9)
- # beginners (46)
- # cider (1)
- # circleci (2)
- # clj-on-windows (1)
- # cljdoc (5)
- # cljsrn (2)
- # clojure (25)
- # clojure-austin (8)
- # clojure-brasil (4)
- # clojure-europe (52)
- # clojure-nl (1)
- # clojure-norway (162)
- # clojure-uk (2)
- # cursive (3)
- # datalevin (134)
- # datomic (16)
- # defnpodcast (8)
- # graphql (9)
- # honeysql (5)
- # hoplon (26)
- # hyperfiddle (18)
- # introduce-yourself (1)
- # lsp (4)
- # malli (19)
- # nbb (16)
- # nrepl (1)
- # practicalli (3)
- # releases (3)
- # shadow-cljs (36)
- # tools-deps (7)
- # vim (2)
- # xtdb (9)
bit of a niche thing I suppose but H2's JAVA_OBJECT
type requires the keyword :java_object
in order to work correctly. Is there a way to support kebab casing here?
Can you provide more context/examples & maybe link to some docs?
That type is documented http://www.h2database.com/html/datatypes.html#java_object_type. I'm getting some data from an API into our (test) database and among other things it includes positional data that looks like this
{"type" "Point", "coordinates" ["a-lat" "a-lon"]}
H2 has a GEOMETRY
type for this but it doesn't support the additional type parameter so I'm just serializing it as is.
It really is not terribly important and is more of an observation that if I write something like
(hsql/format {:create-table :foo
:with-columns [[:bar :java-object]]})
it gives me back ["CREATE TABLE foo (bar JAVA OBJECT)"]
which doesn't pass muster with H2.Ah, gotcha... Not much you can do to get around that at the moment.
No worries, thanks for HoneySQL, it's awesome!!