This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-28
Channels
- # announcements (11)
- # aws (2)
- # babashka (35)
- # beginners (173)
- # calva (3)
- # chlorine-clover (2)
- # cider (17)
- # clara (2)
- # clj-kondo (28)
- # cljs-dev (11)
- # cljsrn (53)
- # clojure (178)
- # clojure-argentina (1)
- # clojure-europe (12)
- # clojure-germany (5)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (25)
- # clojure-uk (88)
- # clojurescript (109)
- # conjure (34)
- # cursive (2)
- # data-science (35)
- # datomic (15)
- # emacs (6)
- # events (1)
- # fulcro (28)
- # graphql (15)
- # helix (21)
- # hoplon (7)
- # jobs (4)
- # jobs-discuss (1)
- # joker (15)
- # lambdaisland (1)
- # lein-figwheel (4)
- # local-first-clojure (1)
- # malli (8)
- # meander (17)
- # off-topic (33)
- # parinfer (2)
- # rdf (16)
- # re-frame (3)
- # reagent (21)
- # reitit (14)
- # remote-jobs (5)
- # ring (8)
- # rum (1)
- # shadow-cljs (184)
- # sql (2)
- # testing (1)
- # tools-deps (23)
With respect to xml support with clojure.data.xml, it looks like xml/sexp-as-element is missing, or (more likely) I’m just Doing it wrong™
@grzm I now pushed the remaining vars to master. New binaries will appear in around 5 minutes in the #babashka_circleci_builds channel
Tested this locally:
$ ./bb '(xml/emit-str (xml/sexp-as-element [:parking-lot [:car {:color "red" :make "nissan"}]]))'
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><parking-lot><car make=\"nissan\" color=\"red\"/></parking-lot>"
Depends on how often I release it. If it's urgent, I could do a new release tomorrow
Works a treat. Thanks, @U04V15CAJ!
Plain ol’ XML. Using that in conjunction with babashka.curl for some simple HTTP endpoint testing.
I'm running a questionnaire about the new Postgres support. Do you have any opinion on this? The options are: - It's useful enough to keep it in, even if there's no support for other databases. - It's unnecessary, people can also shell out to psql - There should be another project called bb-sql which packs drivers for psql, etc + some SQL libraries The ultimate solution would be a library system for babashka, but that might be difficult to pull off.
psql is very powerful, so I’ll likely use that in many cases, but the ability to get the data back into Clojure data would be really nice.
I’m for either keeping it in, or providing bb-sql (which is what I’d likely use by default)
mind you that bb-sql would not have all the things that bb has (e.g. XML would not be in it), so you would have to use them both to accomplish something like: produce XML and then stuff it in the db
I do like things to be in general lean, so I’m sympathetic to not including the kitchen sink. Setting those boundaries appropriately can be a tough call.
the driver for postgres was small enough to include imo, and worked great with graalvm, but it feels a bit asymmetric to support only one db maybe
there was one other DB that worked: hsqldb. It is currently behind a feature flag, so you can enable it if you want to compile yourself
Least I can do! babashka is going to change how I do command line scripting in so many positive ways.
Yeah, completely agree on the asymmetry assessment. It’s nice that it’s in favor of the One True SQL Implementation (Long Live Stonebraker!), but, there remain the Great Unconvinced 🙂 which we should also be nice to
Adding sqlite could bring new type of functionalities