Unknown function db:open

Tuesday, 17 September 2024 · 3 messages · last reply 18 Sep 2024
CG
Christian Grünin reply to Kendall Shaw, 18 Sep 2024, 00:2617 Sep 2024 22:43 #
Dear Kendall, with BaseX 10, db:open was replaced with db:get [1]. With version 11, the deprecated function was removed. I cannot tell, though, why the prefix is said to be unknown. Could you please share the exact error message with us? Best, Christian [1] https://docs.basex.org/main/BaseX_10#functions
Quoted text · Kendall Shaw · 19 lines
Kendall Shaw <kshaw at kendallshaw.com> schrieb am Di., 17. Sept. 2024, 22:26: > I'm using basex 11.2 under WSL ubuntu 24.04 when I use the command > xquery count(db:open('some')/*), I see an error message about db prefix > being undefined. The same thing from an editor tab. > > import module namespace db = 'http://basex.org/modules/db'; > > count(db:open('some')/*) > > I get the same error message. > > Is this to be expected? How can I supply what is needed? > > Thanks, > > Kendall Shaw > > >
KS
Kendall Shaw18 Sep 2024 00:26 #
I'm using basex 11.2 under WSL ubuntu 24.04 when I use the command xquery count(db:open('some')/*), I see an error message about db prefix being undefined. The same thing from an editor tab. import module namespace db = 'http://basex.org/modules/db'; count(db:open('some')/*) I get the same error message. Is this to be expected? How can I supply what is needed? Thanks, Kendall Shaw
KS
Kendall Shawin reply to Christian Grün, 17 Sep 2024, 22:4318 Sep 2024 02:12 #
Hi Christian, I just get the error message about unknown function when I try this now from the command line or the editor. So, I'm not sure what resulted in the error message about the prefix. Sorry. Best regards, Kendall
Quoted text · Christian Grün · 37 lines
On 9/17/2024 1:43 PM, Christian Grün wrote: > Dear Kendall, > > with BaseX 10, db:open was replaced with db:get [1]. With version 11, > the deprecated function was removed. > > I cannot tell, though, why the prefix is said to be unknown. Could you > please share the exact error message with us? > > Best, > Christian > > [1] https://docs.basex.org/main/BaseX_10#functions > > > > Kendall Shaw <kshaw at kendallshaw.com> schrieb am Di., 17. Sept. 2024, > 22:26: > > I'm using basex 11.2 under WSL ubuntu 24.04 when I use the command > xquery count(db:open('some')/*), I see an error message about db > prefix > being undefined. The same thing from an editor tab. > > import module namespace db = 'http://basex.org/modules/db'; > > count(db:open('some')/*) > > I get the same error message. > > Is this to be expected? How can I supply what is needed? > > Thanks, > > Kendall Shaw > >

⚡Generated with XQuery