This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-20
Channels
- # arachne (4)
- # bangalore-clj (1)
- # beginners (38)
- # boot (182)
- # cider (21)
- # cljs-dev (9)
- # clojars (5)
- # clojure (229)
- # clojure-austin (1)
- # clojure-berlin (1)
- # clojure-czech (3)
- # clojure-dusseldorf (3)
- # clojure-ireland (5)
- # clojure-italy (4)
- # clojure-russia (33)
- # clojure-spec (73)
- # clojure-taiwan (6)
- # clojure-uk (22)
- # clojure-ukraine (1)
- # clojurescript (80)
- # core-async (26)
- # cursive (3)
- # datascript (20)
- # datomic (9)
- # defnpodcast (8)
- # editors (4)
- # emacs (7)
- # garden (41)
- # hoplon (2)
- # java (1)
- # lambdaisland (2)
- # lein-figwheel (1)
- # leiningen (5)
- # luminus (4)
- # lumo (36)
- # off-topic (4)
- # om (21)
- # onyx (1)
- # pedestal (33)
- # re-frame (33)
- # ring-swagger (70)
- # spacemacs (26)
- # specter (7)
- # sql (6)
- # timbre (2)
- # untangled (12)
- # vim (3)
- # yada (1)
@luxbock do you need to access the vectors in queries? if not, you might as well just encode to bytes to and store the bytes
@bja I don't. I ended up using ARRAY as the type and converting my values to object-array, which is easy enough to convert to and from
@seancorfield: Is there a way for insert-multi!
to take parameters? I've got a couple fields (latitude and longitude) on a whole bunch of records and I want to insert them as a PostGIS point which would take the syntax along the lines of ST_SetSRID(ST_MakePoint(?,?), 4326)
- I've been doing stuff like this by just mapping over and using the single insert version - though looking into it a bit more I might have the syntax wrong here as well, I can't seem to find any examples in my own code of using insert!
like this so I might be mixing syntax between this and other JDBC statements... either way, I can't seem to find a good example of making sure I've properly parameterized data for an insert like this.
I think I would fallback to execute!
for that...
You could still use a single SQL insert a la insert-multi!
but you’d have to generate the SQL string yourself.
@seancorfield: Ok, that seems along the lines of how I've been doing this kind of thing - thanks!