Hi Eric,
While it’s possible to use BaseX in an embedded way, it’s actually more than that:
• The existence of a persistent home directory is a focal aspect of BaseX, many features rely on that [1]. • Users, jobs, database logs and other information is kept in this directory, and is not limited to a single database instance. • The implementation of XQuery allows you to access and update multiple databases, and many features would need to be limited if we introduced the concept of a single database.
Maybe we can help you out by learning more about your use case: How do you currently embed BaseX?
Best, Christian
[1] https://docs.basex.org/wiki/Configuration
On Sat, Feb 19, 2022 at 10:48 PM Eric Levy contact@ericlevy.name wrote:
I recently learned that BaseX offers no true support for access to a database given directly by its path.
In contrast, opening a database by file path is a well-established pattern in embedded databases, seen for example in SQLite, which permits use of any database given by an arbitrary path, without any dependence on external configuration or other data elsewhere on the system.
I wish to submit as a feature request the suggestion that BaseX include similar support.