This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-14
Channels
- # beginners (19)
- # boot (11)
- # cider (59)
- # cljs-dev (292)
- # cljsrn (2)
- # clojure (121)
- # clojure-brasil (19)
- # clojure-canada (2)
- # clojure-france (2)
- # clojure-italy (57)
- # clojure-spec (54)
- # clojure-uk (20)
- # clojurescript (83)
- # core-async (20)
- # cursive (5)
- # datascript (2)
- # datomic (10)
- # duct (25)
- # editors (4)
- # emacs (2)
- # fulcro (5)
- # funcool (1)
- # graphql (2)
- # immutant (8)
- # java (1)
- # jobs (4)
- # jvm (1)
- # keechma (5)
- # luminus (10)
- # off-topic (113)
- # om (36)
- # onyx (11)
- # parinfer (55)
- # pedestal (7)
- # protorepl (28)
- # re-frame (25)
- # reagent (6)
- # ring-swagger (1)
- # shadow-cljs (113)
- # spacemacs (1)
- # specter (23)
- # unrepl (8)
- # yada (8)
is it possible to use duct with boot? asking for an existing codebase
Is there any way to provide a db-spec
(e.g., map of user
, password
, host
, …) to hikaricp module instead of a jdbc-url
?
@dadair It supports the same options as the underlying HikariCP wrapper. https://github.com/tomekw/hikari-cp#configuration-options
It’s not exactly the same as the Clojure JDBC library though.
ah ok, maybe this is more a question for #sql but one thing I’m not sure of with hikari-cp datasource map is defining say postgres ssl/sslfactory, there doesn’t seem to be a config for that, unless it’s baked into the “query params” of just a jdbc-url
@dadair There are parameters for SSL in the JDBC connection URL: https://jdbc.postgresql.org/documentation/80/connect.html
I created 2 simple Duct modules https://github.com/mariusz-jachimowicz-83/duct-simple-mailer https://github.com/mariusz-jachimowicz-83/duct-env-dbs @weavejester awesome work with Integrant, Duct and all other projects. Very usefull stuff. 😄
I’m starting to dig into Duct a little more and am getting a feel for it
I have a question about module.web
Let’s say I want to re-configure some of the ring middleware defaults
what approach should I take to do that? I see that they’re initialized here https://github.com/duct-framework/module.web/blob/03ccb0b93f520c95b86b910f395d68841c8bd602/src/duct/module/web.clj#L99-L112
but I don’t see a way to “get” to them
I see that demote
metadata in there which seems like a hint that I’m supposed to merge over that map in some way
Usually the second map in a merge takes priority. The demote metadata swaps that around. The module will prefer your config over its data.
So, if you want to override some data, you just put it in your configuration.
ohhhh ok I was about to ask you how I actually do that but I just realized all I need to do is pass {:cookies false}
(for example) to my :duct.module.web/site
integrant key in my config file
this is starting to click now - ok i’m gonna play around with this
thank you!
I have a project which could use Duct et al, but it's built with Boot instead of Lein. I note that there are no Boot-based examples. Is there a reason other than Lein's templates?
@colliderwriter The only part of Duct that’s Leiningen is the template and the plugin that provides a way of creating local files (like profiles.edn, local.clj etc)
So you could certainly use Boot. I don’t use Boot myself, so I haven’t written anything for it.
Thanks. I assumed as much but thought I'd ask before creating that branch.
Is it possible to have websockets with the default jetty server? Or would I say need to switch over to httpkit with Sente?
@dadair No, but there’s httpkit and aleph servers already implemented.