Furthermore, there seems to be something about the -I flag that I don't understand.
In my path, I have a folder also named TestResults. When I pass -I TestResults, it seems like queries are issued against the document set in this folder instead of the database named TestResults. I could have sworn that I had tested this before by renaming the folder to something else, but it seems that at this time, when I rename that folder, -I refers to an installed database and not a set of files in a folder in my path. I suppose that is the cause of the error with updates, since some machinery gets confused that calls to db now refer to a static document set instead of a database.
c:/Users/joshua.kordani/Documents/ACS $ basex -i TestResults
BaseX 9.2.2 [Standalone]
Try 'help' to get more information.
> xquery distinct-values(//testcase/@testrun)
Query executed in 298.9 ms.
> quit
Have fun.
c:/Users/joshua.kordani/Documents/ACS $ basex
BaseX 9.2.2 [Standalone]
Try 'help' to get more information.
> open TestResults
Database 'TestResults' was opened in 159.15 ms.
> xquery distinct-values(//testcase/@testrun)
MultiParty 20190508-182649.xml
Range 20190506-142945.xml
Range.Aterm(RepetitionInfo) 20190506-144018.xml
Range.Aterm(RepetitionInfo) 20190506-144510.xml
Range.Bterm(RepetitionInfo) 20190506-144400.xml
Range.Bterm(RepetitionInfo) 20190506-144430.xml
test.xml
TwoParty 20190508-192109.xml
Query executed in 329.09 ms.
>
-----Original Message-----
From: Christian Grün <christian.gruen@gmail.com>
Sent: Friday, May 24, 2019 7:39 AM
To: Joshua Kordani <joshua.kordani@speedcastwireless.com>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] FW: Attempting to write bulk import of files is failing
Hi Joshua,
I need your input. I copied your XML files into the directory with your XQuery modules. Then created a basex command script in the same directory (test.bxs):
create db TestResults
set bindings filename=MultiParty 20190508-182649.xml run import-and-process.xq list TestResults set bindings dir=./ run import-all.xq list TestResults
I called this script and I got the attached output, which looks ok to me. What did you do differently? Could you create an updated command script for me?
Best,
Christian
> basex -v test.bxs
Database 'TestResults' created in 34.62 ms.
BINDINGS: filename=MultiParty 20190508-182649.xml
Query "import-and-process.xq" executed in 641.18 ms.
Input Path Type Content-Type Size
-----------------------------------------------------------
MultiParty 20190508-182649.xml xml application/xml 1291
1 Resource(s).
BINDINGS: dir=./
Query "import-all.xq" executed in 115.87 ms.
Input Path Type Content-Type Size
-----------------------------------------------------------
MultiParty 20190508-182649.xml xml application/xml 1291
TwoParty 20190508-192109.xml xml application/xml 754
2 Resource(s).
DISCLAIMER: This email communication and any attached files are Speedcast Wireless proprietary and may be legally privileged. Export-controlled information shall not be disseminated without proper authorization and proper export-control markings, per Speedcast Wireless export policy. If you have received this transmission in error please notify the sender immediately and then delete this email and all its attachments. If you are not the addressee, any disclosure, reproduction, copying, distribution, or any other dissemination or use of this communication is strictly prohibited. Thank you.