Hello BaseX community,
I am writing a script to load a RDBMS with some information from large
XML files (1GB). I am using BaseX and XQuery to process the files and
generate appropriate data dumps for bulk loading the database. My
ultimate goal is to write a couple BASH scripts that will just load up
the database, however I need some advice on how to script BaseX. I
would like to load the XML file, generate a couple indexes, run my
queries, then delete the indexes. It does not look like BaseX is so
easily scripted from the command line, unless I initially load the
database or run a BaseX server. I have tried running BaseX just using
doc() inside the XQuery but this takes forever...
Ideally I would want to write as script like this:
#!/bin/bash
basex --generate-index --dbname="hello_world" file.xml
basex --query qry.xml > result.xml
basex --delete --dbname="hello world"
Any suggestions on how I can do this?
Thanks,
AJ
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.dehttps://mailman.uni-konstanz.de/mailman/listinfo/basex-talk