DirkCheersIt looks much more suitable for the use case you describe, but maybe I am missing something.Hi Ketill,I don't fully understand your requirement. Why don't you simply add/replace the documents (using the database commands or within XQuery db:add(...) or db:replace(...)). This, of course, reads files from the file system to add them to the database.On Mon, May 18, 2015 at 10:35 AM, Ketill Fenne <ketill.fenne@gmail.com> wrote:Ok, thanks!My requirement is that in a locally installed product that uses BaseX to store content I need to read a database(s) containing new/changed documents from (preferrably) an upgrade/ - folder and add/replace documents in the existing database(s) in the DBPATH - dir.I guess I'll move the database into DBPATH, install the updates, and then drop the database(s) containing the upgrades.Ketill FenneOn Mon, May 18, 2015 at 10:25 AM, Christian Grün <christian.gruen@gmail.com> wrote:Hi Ketill,
> Maybe this has been answered before, but is it possible to open and read a
> database located outside DBPATH?
Sorry, no. Currently, what you can do is..
* set DBPATH via system properties before starting BaseX [1],
* create symbolic links in your database directory, or
* copy your databases in the db directory..
But I'm not sure if any of these options meets your requirements?
Christian
[1] http://docs.basex.org/wiki/Options
--Dirk Kirsten, BaseX GmbH, http://basex.org|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22