This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-13
Channels
- # beginners (50)
- # boot (27)
- # bristol-clojurians (7)
- # cider (30)
- # clara (1)
- # cljs-dev (130)
- # cljsrn (14)
- # clojure (179)
- # clojure-austin (6)
- # clojure-greece (2)
- # clojure-italy (4)
- # clojure-spec (19)
- # clojure-uk (54)
- # clojurescript (64)
- # core-async (3)
- # data-science (1)
- # datomic (66)
- # duct (11)
- # emacs (5)
- # figwheel (1)
- # fulcro (26)
- # funcool (7)
- # jobs (1)
- # jvm (6)
- # keechma (5)
- # lein-figwheel (5)
- # luminus (5)
- # lumo (1)
- # off-topic (93)
- # parinfer (37)
- # pedestal (15)
- # protorepl (10)
- # re-frame (42)
- # reagent (12)
- # shadow-cljs (71)
- # spacemacs (3)
- # specter (7)
- # vim (8)
- # yada (9)
@weavejester I haven't figured it out yet (I'm a bit new to Clojure, and especially Duct). So could you give me any hints on how to use :duct.module.web/site
for some routes and :duct.module.web/api
for the others?
@iarenaza Use :duct.module.web/site
and then add the format middleware manually, like so:
:duct.core/handler {:middleware [#ig/ref :duct.middleware.web/format]}
:duct.middleware.web/format {}
@weavejester I have started some alternative implementation for duct sql module and I don't understand why :duct.database/sql
is not initialized in system
please see db-pool-test
in https://github.com/mariusz-jachimowicz-83/duct-env-dbs/blob/master/test/duct_env_dbs/module_test.clj
@mariusz_jachimowicz What’s your module name?
It looks like you’re calling your module :duct.module/sql
, but that’s going to conflict with the :duct.module/sql
in Duct itself. You want to ensure that the name of the module is consistent with the namespace where the method is defined.
You want something more like: :duct-env-dbs.module/sql
.
yes my intention was to have replacement for the default one.
You still want to give it its own namespace; that’s what namespaces are for.
Even though I thought that :duct.database/sql
will be initialized as an result of launching :duct.database.sql/hikaricp
because of expanding ancestor key or something like that
@mariusz_jachimowicz It should do, as long as the hierarchy is loaded.
@weavejester thx. I will try with proper module name.