Ever wanted to put Clojure into your sql?
▲ 17 r/Clojure

Ever wanted to put Clojure into your sql?

Sqlite is my database of choice and when my schema is in flux I often dump a bunch of pseudo columns into a TEXT column as edn. This means that regular SQL does not work.

I recently came across the very nice sqlit TUI app and realized that creating an extension to Sqlite syntax could make it easy to update my db when necessary

https://github.com/whamtet/sqlit

The fork provides an extension of Sqlite syntax

updateclj company set details = (assoc *input* :hi :there) where company_id > 9 use primary key company_id

*input* is the existing edn value of the column as seen by babashka

Is anybody else using this approach?

u/whamtet — 10 days ago

Not sure if wall was supposed to be used this way

But it makes for an easy chat client.

u/whamtet — 21 days ago
▲ 30 r/Clojure

Babashka as CGI

Dear Community,

I see a few people have talked about using Babashka as a CGI script to host lightly used web apps e.g.

https://eccentric-j.com/

Is anybody actually doing this very much in production? Would be keen to hear what you think.

u/whamtet — 26 days ago

Strange Translation

I’ve always thought this was a strange translation. In English bread talk means “conversation about bread”, but bánh mì biết nói? Can any native speakers advise?

u/whamtet — 1 month ago