Stored procedures (XRPC) support
Wednesday, 24 February 2010 · 2 messages
HW
Harmen Wessels24 Feb 2010 08:50 #
I am currently working on a research project on native XML databases and I am trying some stuff on BaseX and I must complement on the nice GUI supplied with the database.
After testing some stuff I now have a question: is there support for stored procedures in some sort for BaseX? I would like to query the database using a XQuery which is stores in the database and can be called using some parameters.
Thanks.
Regards,
Harmen Wessels.
CG
Christian Grün24 Feb 2010 09:34 #
Dear Harmen,
thanks for your feedback. Currently, Stored Procedures are not supported by BaseX. You could try, however, to define XQuery modules and store them on a remote server. Feel free to run this small example:
(: Imports a remotely stored query module and runs a function :)
import module namespace test = "http://basex.org/modules" at
"http://www.inf.uni-konstanz.de/dbis/basex/dl/test.xqm";
test:fib(10)Hope this helps,
Christian
___________________________
Christian Gruen
Universitaet Konstanz
Department of Computer & Information Science
D-78457 Konstanz, Germany
Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577
http://www.inf.uni-konstanz.de/~gruen
Quoted text · Harmen Wessels · 18 lines
On Wed, Feb 24, 2010 at 8:50 AM, Harmen Wessels <harmenwessels at gmail.com> wrote: > I am currently working on a research project on native XML databases and I > am trying some stuff on BaseX and I must complement on the nice GUI supplied > with the database. > > After testing some stuff I now have a question: is there support for stored > procedures in some sort for BaseX? I would like to query the database using > a XQuery which is stores in the database and can be called using some > parameters. > > Thanks. > > Regards, > Harmen Wessels. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery