given a map in clojure, {::my-func {:meta {...}, :fn #function[hugsql.core/db-fn*]}, automagically defined, how do I retrieve :fn value? I've tried ...
given a map in clojure, {::my-func {:meta {...}, :fn #function[hugsql.core/db-fn*]}, automagically defined, how do I retrieve :fn value? I've tried ...
This will probably be very thin but I am running out of options... I am using clojure with hugsql and I am a true beginner with database tech. I am t ...
I am using clojure hugSQL to insert data into PostgreSQL database. I am trying to insert multiple rows into an answer table using :tuple* parameter. W ...
I write Clojure using the VS Code Calva extension, which uses clj-kondo to perform static analysis of my code. I'm using HugSQL to create Clojure fun ...
Does anyone know how this can be accomplished? (get-lists ["free" "food"]) -> I have tried: But of course that does not work. Can someone po ...
Edit (fixed)... If you are following the Luminus guestbook tutorial or adapting parts of it, you may come across an error like Parameter Mismatch: :n ...
I have a nested map with namespaced keys like this: Instead of simpliying this into a flat map I'd like to pass it straight through to a HugSQL fun ...
I have a database with a status entity that I'd like to be able to fetch in many different ways. As a result, I'd like to build the WHEN clause of my ...
I'm working with PostgreSQL and wanting to INSERT multiple rows at once with an ON CONFLICT DO UPDATE statement. I've got something like this: whe ...
I am trying to use HugSQL to select some records from my DB and I get back the records I have few problems when I try this code: and Actual resu ...
I'm trying to cast a list of ip addresses to ::inet but only the last element in the list gets converted. I've tried the following but nothing seems ...
I'm trying to do this for the first time in luminus, h2, hugsql and clojure. The insert statement works fine when entered in a SQL client connected t ...
I am truely lost here. I have a very simple application. All it does is to insert a user into the user table in my Database. I using Postgres. The cod ...
Original query: I want to pass in arbitrary key/val pairs and get matching results. For example: (select*-list db-spec {:name "Fruit" :type "Foo"} ...
I am using PostgreSQL version 10 on macOS 10.12.6 and would like to use a custom plpgsql function in a query which shall be accessible to HugSQL. The ...
I want to log all SQL strings executed by HugSQL. I looked through the docs, but couldn't find anything. Whats the recommended way? ...
I have the following task. I need to create a console application which takes one param which is the number of data to generate. The data is person ad ...
I'm using Hugsql with Clojure to access a Postgresql db. Several of my database tables have optional columns - for a simple example consider a "users" ...
Using Clojure and hugsql. I define my queries as such. After using def-db-fns, this will create a function query-should-return-one-but-returns-mult ...