I have already drawn an analogy to a pattern that has become widespread for using SQLite.
Maybe it helps to compare BaseX with other Open-Source SQL databases, e.g. PostgreSQL: While it’s possibly to use it embedded, specifying a simple path as target won’t suffice.
You’ve probably seen that a single BaseX database is a directory with multiple files.
if the location of the project were given as "/path/to/project", then the application would need to open a database given at "/path/to/project/database".
What about assigning "/path/to/project/database" to DBPATH and storing your single database as a sub-directory of that folder?
I am not sure what more information to give,
I was wondering if you use Java, the command line or something else to communicate with BaseX.
But If I understand you correctly, you haven’t embedded BaseX yet, but you would like to do so?