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.
SQL databases are most useful for data that may be represented naturally using a relational model.
Sure. I simply wanted to illustrate that you cannot embed PostgreSQL that easily in your project as you can embed SQLite.
I suppose BaseX is not the right tool for you, as you seem to look for something that's more light-weight.