I'd like to use datomic, but my question applies to any database. When I used a framework in another language it was easy, the config file and ORM did setup the connection. I only installed an adapter and wrote the URI of the database.. Now as I want to use a minimal framework or to totally get rid of the framework, I dont know what is the righ way to set up the connection.
I tried to write the connection details (such as URI, conn and db) in the route-handler file and it works. But I know that I'm doing something wrong, because I've read that some setup is done by leiningen, for example in the examples I found about SQL. I searched and couldn't find examples for datomic and luminus. I guess my routes handler file should only require something to import and than in each function queries using datomic.api. But datomic.api/q needs a db value, to be imported from somewhere. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.