How could I get the current database name in xquery?
Ddonaldjohn14 Jul 2017 08:12 # 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?
CGChristian Grün14 Jul 2017 10:39 # Hi Donald,
Did you try db:name()? See our documentation for more information [1].
Christian
[1] http://docs.basex.org/wiki/Database_Module
Quoted text · donaldjohn · 7 lines
Am 14.07.2017 8:12 vorm. schrieb "donaldjohn" <donaldjohn at qq.com>:
> 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?
>
⚡Generated with XQuery