Reputation: 1256
Instead of having to switch between editing files in emacs and doing little tests in the Marklogic query console, I'd really like to be able to open a buffer, write a little XQuery, then run it against a Marklogic server I've got running on a virtual machine. In effect, I suppose the perfect solution would result in something similar to the scratch buffer, where you write some elisp, then hit C-j to execute it.
Upvotes: 3
Views: 551
Reputation: 20414
Calling eval.xqy over HTTP as suggested by @mblakele is probably easiest. But if you want tighter integration, there is the XCC library (Java/.Net; http://developer.marklogic.com/products/xcc/5.0 ), and also the slightly older libmlcc library ( http://robbertbroersma.nl/blog/a-blog.html ). Perhaps those are useful to you..
Upvotes: 1
Reputation: 7840
Mostly I just move my code into libraries, and import those libraries from cq. But you could write elisp that sends your query via HTTP to the cq or QueryConsole eval.xqy
module, as an HTTP POST.
You could also use a textarea emacs interface for your browser, so that you can use cq via emacs.
https://chrome.google.com/webstore/detail/ljobjlafonikaiipfkggjbhkghgicgoh
https://addons.mozilla.org/en-US/firefox/addon/its-all-text/
https://github.com/marklogic/cq
Upvotes: 1