Comments (2)
@yogthos wow, thanks for ur help 😄
from kit.
here's one approach for inspecting the queries that HugSQL generates:
(defn log-sqlvec [sqlvec]
(log/info (->> sqlvec
(map #(clojure.string/replace (or % "") #"\n" ""))
(clojure.string/join " ; "))))
(defn log-command-fn [this db sqlvec options]
(log-sqlvec sqlvec)
(condp contains? (:command options)
#{:!} (hugsql.adapter/execute this db sqlvec options)
#{:? :<!} (hugsql.adapter/query this db sqlvec options)))
(defmethod hugsql.core/hugsql-command-fn :! [_sym] `log-command-fn)
(defmethod hugsql.core/hugsql-command-fn :<! [_sym] `log-command-fn)
(defmethod hugsql.core/hugsql-command-fn :? [_sym] `log-command-fn)
from kit.
Related Issues (20)
- how to run this hugsql snip HOT 2
- The Kit Clojurescript Docs uses an incorrect function to render to the DOM. HOT 1
- Add possibility to remove modules HOT 6
- New project with +mysql doesn't start HOT 1
- New project: "Error building classpath. Could not find artifact io.github.kit-clj:kit-undertow:jar:1.0.6 in central (https://repo1.maven.org/maven2/)" HOT 2
- creating template with deps-new does not create folders properly in windows HOT 14
- clj-new alias could cause confusion HOT 6
- query-fn middleware not injected in request HOT 3
- No such var: ig-utils/last-modified - kit-sql-conman 1.0.9 HOT 5
- Have changes in Selmer template files propagated without needing an Integrant reset (during development). HOT 3
- auto reload sql queries in dev mode HOT 3
- Could a Datomic profile be interesting to have? HOT 7
- Can't run test alias under docker
- Stock guestbook app crashes when running as uberjar HOT 8
- Remove Alpha warning from the README HOT 1
- kit to build like-springboot web services HOT 1
- Can't create a Kit project on Windows HOT 1
- upgrade to use Integrant 0.9.x, switch from using prep to expand as prep key has been deprectated
- Feel free to lift code or documentation if desired HOT 1
- how to access query-fn in api route? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kit.