Hi!
Maybe this has been answered before, but is it possible to open and read a database located outside DBPATH?
Kind regards Ketill Fenne
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
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 Fenne
On 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
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.
It looks much more suitable for the use case you describe, but maybe I am missing something.
Cheers Dirk
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 Fenne
On 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
Hi! The only reason is that we are currently moving the product from using Oracle Berkeley XMLDB to BaseX, and would like to leave as much of the existing java-code as is :-)
Ketill
On Mon, May 18, 2015 at 10:51 AM, Dirk Kirsten dk@basex.org wrote:
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.
It looks much more suitable for the use case you describe, but maybe I am missing something.
Cheers Dirk
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 Fenne
On 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
-- 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
basex-talk@mailman.uni-konstanz.de