Actually, in Datomic, the namespaces don't have any special meaning for the database itself--you can choose to use whatever namespace (or even no namespace)! Using namespaces is a convention to help you keep track of which attributes belong to which entities.
We don't use a separate model layer for our systems--the Datomic APIs are actually pretty rich when it comes to manipulating the system, between the transactions as data and the entity API. On Sunday, April 5, 2015 at 11:32:50 AM UTC-4, Stig Brautaset wrote: > > I have a question regarding using Datomic from Clojure, but I think it's > more of a Clojure question than a Datomic question > > I understand that you must use namespaces in idents for logically distinct > types of entities. (Unless you intend them to be lumped together in the > same index.) Thus the :ids in two entities below don't conflict: > > {:foo/id 1 > :name "Name of a Foo"} > > {:bar/id 1 > :desc "Bar's don't have names, they have desc"} > > So far so good. > > My question is: do you expose this namespacing outside the model layer > when working in Clojure? I'm inclined to say that this namespacing is an > implementation detail of the database and so add/remove them in the model > layer. I would love to hear your opinions. > > Stig > -- 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.