Clojurians
#lambdaisland
<
2017-01-04
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

dhruv118:01:40

how do i access functions or vard defined in my clojure code in my clojurescript code. ex: clojure code

(def my-db-conn “some conn”)
how can i do the following? clojurescript code:
clojure.code/my-db-conn

pesterhazy20:01:00

only through macros

pesterhazy20:01:35

but, why would you want to access your db connection in clojurescript? That seems unwise.

dhruv120:01:29

if there is an event which i need to presist into the DB the user clicks a button, which kicks off an event that says “Save the user”. I need to save the user in the DB.

dhruv120:01:32

from cljs, i don’t know how to pass the data to clojure code to save it in a DB

dhruv120:01:36

@pesterhazy