Reference the currently open database?

Thursday, 11 February 2016 · 2 messages
HE
Hondros, Constantine (ELS-AMS)11 Feb 2016 17:33 #

Hello all,

Maybe a dumb question, but I need to reference the currently open database.

Is there a more elegant way than this?

db:name((*)[1])

________________________________

Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands.

CG
Christian Grün11 Feb 2016 17:36 #
Quoted text · Hondros, Constantine (ELS-AMS) · 1 line
> db:name((*)[1])

This should be faster:

  db:name(.[1])

There is probably no other way to do it, because multiple databases may be opened via XQuery at the same time.

Quoted text · Hondros, Constantine (ELS-AMS) · 9 lines
> > > > > > > ________________________________ > > Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The

Netherlands, Registration No. 33156677, Registered in The Netherlands.


⚡Generated with XQuery