-
Implementation example:
https://stackoverflow.com/questions/35513113/how-to-insert-and-update-postgres-arrays-using-yesql-in-clojure/35518713#35518713
-
I would like it very much if we could name parameters in queries, instead of the current $1, $2, $3... nonsense. For example:
```
client.query("INSERT INTO beatles(name, height, birthday) values($1, …
-
On hugsql 0.7.5:
```
-- :name q
select * from t where id in (:v*:ids);
...
(q-sqlvec {:ids nil}) => ["select * from t where id in ()"] ;; not ["...where id in (?)" nil]
```
Is this behaviour …
timds updated
5 years ago
-
Yet another random idea. Let's imagine a query like:
```sql
-- name: (setf activated) @execute
-- Activates or deactivates the player with the provided ID.
UPDATE player SET activatedp = ?
…
-
As far as I understand, HugSQL doesn't currently support namespace-qualified keywords:
```clojure
> (hugsql.core/sqlvec "SELECT :test/value" {:test/value 42 :test 5})
["SELECT ? /value" 5]
```
…
-
Hi,
Since migrating from Yesql to Hugsql we sometimes on startup run into this exception, which is probably a weird race condition (maybe `require` is too slow?).
``` text
#error {
:cause No such …
-
Not immediately obvious from the docs: how to execute a transaction with `oksql/query`?
-
From the documentation, if I want to insert multiple rows, it can be done like so:
```sql
-- :name insert-characters :! :n
-- :doc Insert multiple characters with :tuple* parameter type
insert i…
-
https://quickref.common-lisp.net/cl-yesql.html
![Zrzut ekranu z 2019-03-19 22-14-11](https://user-images.githubusercontent.com/15045546/54642215-5731af80-4a94-11e9-8d6f-cb0f8892587c.png)
I assum…
-
A CL-YESQL function with keyword arguments produces a syntax hint in slime like this:
![Zrzut ekranu z 2019-03-21 22-38-30](https://user-images.githubusercontent.com/15045546/54786820-2a170580-4c2a…