Discussion:
Basic question about sending transaction to Peer Server
mascip
2017-10-12 11:06:22 UTC
Permalink
Hi Datomists,

To send a transaction using a Peer Server,
what is the difference between using
@(d/transact conn [{:db/doc "Hello world"}])
(as indicated here: http://docs.datomic.com/dev-setup.html#peer )
and using
(def conn (<!! (client/connect .... )
followed by
(<!! (client/transact conn ...
(as indicated later on that same page:
http://docs.datomic.com/dev-setup.html#client ) ?


-- Pierre Masci
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Daniel Compton
2017-10-12 19:47:49 UTC
Permalink
Hi Mascip

One example is using the peer library, and one is using the client library.
See http://docs.datomic.com/clients-and-peers.html for more info on the
differences between these.
Post by mascip
Hi Datomists,
To send a transaction using a Peer Server,
what is the difference between using
@(d/transact conn [{:db/doc "Hello world"}])
(as indicated here: http://docs.datomic.com/dev-setup.html#peer )
and using
(def conn (<!! (client/connect .... )
followed by
(<!! (client/transact conn ...
http://docs.datomic.com/dev-setup.html#client ) ?
-- Pierre Masci
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...