This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-22
Channels
- # announcements (8)
- # babashka (4)
- # beginners (164)
- # calva (17)
- # cider (30)
- # cljdoc (4)
- # cljs-dev (6)
- # clojure (103)
- # clojure-europe (63)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-portugal (1)
- # clojure-uk (3)
- # clojured (10)
- # clojuredesign-podcast (2)
- # clojurescript (16)
- # conjure (2)
- # core-async (9)
- # cursive (26)
- # datalevin (4)
- # datomic (155)
- # gratitude (1)
- # holy-lambda (8)
- # honeysql (9)
- # hoplon (6)
- # off-topic (55)
- # polylith (14)
- # portal (21)
- # reagent (5)
- # reitit (16)
- # releases (3)
- # shadow-cljs (87)
- # spacemacs (3)
- # tools-deps (25)
- # xtdb (9)
Hi... I am trying to use NBB with the npm package sqlite3 and I can INSERT data into my table, but I can't get the lastID
in fact I can't get anything back as a result of running the query...
(defn write-birthday
"Function to persist a Birthday Record"
[name day month gift_idea]
(p/let [p_query "INSERT INTO people(name, day, month) VALUES (?,?,?)"
p_resp (.run db p_query name day month)]
(prn p_resp)))
(I am doing my own spin on the recent video about making a birthday reminder app)
This gets me data in my table and a nil
but also this in the REPL when the query runs #object[Database [object Object]]
I am sure I am doing something incredibly dumb vis a vis JS interop, but I just can't figure it out...
🙌 1
Hey @maleghast - let's discuss in #nbb