How could I get the current database name in xquery?
Friday, 14 July 2017 · 2 messages
D
donaldjohn14 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?
CG
Christian 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_ModuleQuoted 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? >
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery