Hi,
I would like to create a database in a directory which is not "data" within the Basex folder. I used (within the GUI) the command
<commands> <dbpath name="/newdirectory"/> </commands>
but it does not work. How can I specify that? Thanks.
Ciao, Giuseppe
Hi Giuseppe,
As DBPATH is a command, no option, you will need to set as detailed in the Options page of our documentation [1]. Please note that DBPATH is a global option. It cannot be assigned at runtime; instead, it must be assigned before BaseX is started
Ciao, Christian
[1] http://docs.basex.org/wiki/Options
On Mon, Jul 23, 2018 at 4:19 PM Giuseppe Celano celano@informatik.uni-leipzig.de wrote:
Hi,
I would like to create a database in a directory which is not "data" within the Basex folder. I used (within the GUI) the command
<commands> <dbpath name="/newdirectory"/> </commands>
but it does not work. How can I specify that? Thanks.
Ciao, Giuseppe
Hi,
I see now that I can change the path in the GUI under preferences, but once I change it I cannot access databases in the "data" folder anymore. It seems that in db:open I can specify to open a particular file of a database, but I cannot specify the path to a database in a folder different from the default one: is that right? Thanks!
Universität Leipzig Institute of Computer Science, NLP Augustusplatz 10 04109 Leipzig Deutschland E-mail: celano@informatik.uni-leipzig.de E-mail: giuseppegacelano@gmail.com Web site 1: http://asv.informatik.uni-leipzig.de/en/staff/Giuseppe_Celano Web site 2: https://sites.google.com/site/giuseppegacelano/
On Jul 23, 2018, at 4:30 PM, Christian Grün christian.gruen@gmail.com wrote:
Hi Giuseppe,
As DBPATH is a command, no option, you will need to set as detailed in the Options page of our documentation [1]. Please note that DBPATH is a global option. It cannot be assigned at runtime; instead, it must be assigned before BaseX is started
Ciao, Christian
[1] http://docs.basex.org/wiki/Options
On Mon, Jul 23, 2018 at 4:19 PM Giuseppe Celano celano@informatik.uni-leipzig.de wrote:
Hi,
I would like to create a database in a directory which is not "data" within the Basex folder. I used (within the GUI) the command
<commands> <dbpath name="/newdirectory"/> </commands>
but it does not work. How can I specify that? Thanks.
Ciao, Giuseppe
I see now that I can change the path in the GUI under preferences, but once I change it I cannot access databases in the "data" folder anymore.
Right. In a single BaseX instance, you can only work with a single database directory.
It seems that in db:open I can specify to open a particular file of a database, but I cannot specify the path to a database in a folder different from the default one: is that right? Thanks!
Right.
Ok. So as I thought I would like to create different databases for different projects, it seems that the best strategy is to have new (complete) basex folders for each project. BaseX is so light that this does not seem an issue, but still I was not sure this was the way to go.
Danke! Giuseppe
Universität Leipzig Institute of Computer Science, NLP Augustusplatz 10 04109 Leipzig Deutschland E-mail: celano@informatik.uni-leipzig.de E-mail: giuseppegacelano@gmail.com Web site 1: http://asv.informatik.uni-leipzig.de/en/staff/Giuseppe_Celano Web site 2: https://sites.google.com/site/giuseppegacelano/
On Jul 23, 2018, at 5:13 PM, Christian Grün christian.gruen@gmail.com wrote:
I see now that I can change the path in the GUI under preferences, but once I change it I cannot access databases in the "data" folder anymore.
Right. In a single BaseX instance, you can only work with a single database directory.
It seems that in db:open I can specify to open a particular file of a database, but I cannot specify the path to a database in a folder different from the default one: is that right? Thanks!
Right.
basex-talk@mailman.uni-konstanz.de