I want to have multiple rule systems, each would have it's own namespace, but I'd like to share not only records, but defquerys as well. However, I'm not figuring out how to add the defquery from another namespace.
@joel380 you can pass ns names, or a collection of rule/query structures to mk -session
So if you did defquery, you’d just do:
(mk-session [my-query])
There is more you can do too if you mark a var metadata with :production-seq that allows you to store sequences of rule/query structures under a single var when a ns is searched for rules/queries.
thanks, i had tried (mk-session '(my-query)) ... still getting up to speed on clojure
hopefully that let's me use another ns as well. ill give it a go.
Yes, you can use an arbitrary mix of namespaces and sequences of explicitly included rules/queries when defining your session.