Hi Eric,

On Mon, Feb 21, 2022, 11:44 PM Eric Levy <cont...@ericlevy.name> wrote:

> On Mon, 2022-02-21 at 23:33 -0500, Liam R. E. Quin wrote:
> > On Mon, 2022-02-21 at 20:00 -0500, Eric Levy wrote:
> > > My use would need a function as such that may be used as such:
> > >
> > > db:open_from_path("/home/user/path/to/database/in/filesystem")
> >
> > For that you would want to set DBPATH in a separate BaseX instance, i
> > think. Once a BaseX server is running it doesn't want to switch
> > database directory.
> >
> > You can have multiple databases in the same folder (identified by
> > DBPATH) though. Each database is contained in its own subdirectory.
> >
> > The standalone basex can be given a DBPATH option too. Or you could
> > use
> > symbolic links to map from database name to other directories.
>
> Yes, I think the suggestion was given previously for using DBPATH. I
> need to consider how easy it is to accept. It is a workaround, and
> gives me some hesitation about robustness and stability.
>
> It seems also that BaseX writes files under the user home directory,
> which unfortunately is not an agreeable side effect for my application.
>

BaseX would write files to the specified directory, based on configuration.
Perhaps the docs would help clarify [1].

HTH!
Best,
Bridger

[1] https://docs.basex.org/wiki/Configuration#Home_Directory

>
>

Reply via email to