Open database outside DBPATH

Monday, 18 May 2015 · 5 messages
KF
Ketill Fenne18 May 2015 10:18 #
Hi! Maybe this has been answered before, but is it possible to open and read a database located outside DBPATH? Kind regards Ketill Fenne
CG
Christian Grün18 May 2015 10:25 #
Hi Ketill,
Quoted text · Ketill Fenne · 2 lines
> 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
KF
Ketill Fenne18 May 2015 10:35 #
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
Quoted text · Christian Grün · 19 lines
On Mon, May 18, 2015 at 10:25 AM, Christian Grün <christian.gruen at 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 >
DK
Dirk Kirsten18 May 2015 10:51 #
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
Quoted text · Ketill Fenne · 35 lines
On Mon, May 18, 2015 at 10:35 AM, Ketill Fenne <ketill.fenne at 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 at 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
KF
Ketill Fenne18 May 2015 11:00 #
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
Quoted text · Dirk Kirsten · 59 lines
On Mon, May 18, 2015 at 10:51 AM, Dirk Kirsten <dk at 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 at 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 at 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 >

⚡Generated with XQuery