Fork me on GitHub
#datomic
<
2019-04-22
>
notid19:04:43

What happens when the year-long datomic starter edition expires?

benoit19:04:38

You lose support and updates.

johnj20:04:00

starter doesn't include support AFAIK

johnj20:04:48

What method is recommended for handling the connection object (d/connect db-uri) ? do you pass it as an arg to every function that does a query or transaction?

favila20:04:10

prefer making a DB once and passing as a value to an entrypoint or family of functions

favila20:04:34

if you need to tx, obviously pass a connection, but try to separate these concerns

💯 4
favila20:04:09

don't do (d/db con) in the body of every function that does querying, for eg

favila20:04:19

pass db in as an argument

favila20:04:29

E.g. in an http-like request handler, it makes sense for it to get a conn and db once, then pass that db around

favila20:04:56

assuming an http request-response is a single unit of work (which it is most of the time)

johnj21:04:45

helpful, thanks

johnj21:04:38

checking this I think did this by commons sense without knowing but verifying anyway