Discussion:
[basex-talk] How could I get the current database name in xquery?
donaldjohn
2017-07-14 06:12:14 UTC
Permalink
Hi,
How could I get the current database name in xquery? I need extract the database input path and then concate it with the relative XML path, I want to get the current opened database name rather than specify it. How could I archive this?
Christian Grün
2017-07-14 08:39:33 UTC
Permalink
Hi Donald,

Did you try db:name()? See our documentation for more information [1].

Christian

[1] http://docs.basex.org/wiki/Database_Module
Post by donaldjohn
Hi,
How could I get the current database name in xquery? I need extract the
database input path and then concate it with the relative XML path, I want
to get the current opened database name rather than specify it. How could I
archive this?
Loading...