Replies: 4 comments
-
What I work with at the moment is a few rather amateur utility escripts that make rpc calls to a running docker xq instance. The build tool I use is
An example query pattern for the main modules goes something like
I place my main modules in
Obviously to be useful he uri will be a param in a function |
Beta Was this translation helpful? Give feedback.
-
My escripts are pretty basic as I have limited understanding of erlang. Although you can use
I place my scripts in `bin/scripts in the docker instance so now I can call simple xquery expressions
|
Beta Was this translation helpful? Give feedback.
-
@grantmacken These are great! A really nice way to interact with a "living" xqerl instance! |
Beta Was this translation helpful? Give feedback.
-
A goal here is to be able to use xqerl as an imbedded dependency in Erlang or Elixir apps, and get feedback from the compiler or IDE right away. Wouldn't it be cool to put a few Use XQuery directly in a BEAM app?? The thinking here is like using Mind you, this will need a change in the way that xqerl compiles code. It will be an all-or-nothing compilation instead of a "living" system that has its own code server. Either way, something that lets you add XQuery code to a release, not only in runtime.. |
Beta Was this translation helpful? Give feedback.
-
It would be really helpful to have a rebar3 plugin for compiling and running XQuery.
Possibly a good starting place for how to do it is: https://github.com/lfe-rebar3/rebar3_lfe
At a minimum,
compile
andrun
would be great to have. Though creating new projects would also be fantastic!! 🌟Beta Was this translation helpful? Give feedback.
All reactions