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.

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Reply via email to