Re: [basex-talk] Library for BaseX

2017-09-20 Thread Christian Grün
Eliúd, Thanks for the link to your XQuery module, looks promising! Best, Christian On Tue, Sep 19, 2017 at 7:43 PM, Eliúd Santiago Meza y Rivera wrote: > Hi! > > I've been using BaseX for a while mainly for personal purpose and I have > written this library to read and

Re: [basex-talk] Server Variables, cached vars, etc

2017-09-20 Thread Christian Grün
Fabrice, Marco, thanks for your asseessment. After I have realized that it’ll take some more time to make this happen, I have added yet another issue for this feature request [1]. [1] https://github.com/BaseXdb/basex/issues/1499 On Mon, Sep 18, 2017 at 5:03 PM, Fabrice ETANCHAUD

Re: [basex-talk] Global locks

2017-09-20 Thread Christian Grün
Hi Andy, > Note @reads="BEP" > > Is this correct and/or of any consequence? This is correct: If the argument of fn:collection, fn:doc, etc. is directly supplied as string argument, it is possible to statically detect (at parse time) which database needs to be locked. Variables will only be

[basex-talk] DBA deployed on JBoss (Wildfly)

2017-09-20 Thread Marco Lettere
Hi all, We created an application web app based on the BaseX .WAR distribution. If we deploy it under tomcat we can access all DBA related functionalities after the login prompt. If we try to do the same under WildFly 10, the application starts without errors but trying to access the DBA pages

[basex-talk] Global locks

2017-09-20 Thread Andy Bunce
Running the following in the GUI (8.6.5) ``` let $db:="BEP" return count(collection($db)) ``` The info windows shows $db is inlined Compiling: - inline $db_0 - pre-evaluate collection("BEP") to document-node() sequence - pre-evaluate count((db:open-pre("BEP",0), ...)) to xs:integer - simplify

Re: [basex-talk] Global locks

2017-09-20 Thread Andy Bunce
Thanks for the explanation. Wanting to parameterise the input collections, in fairly simple ways, seems to me a natural and common requirement. but the consequence of a global read lock is all other tasks are unable to access any database. So great care required ;-) >Variables will only be

Re: [basex-talk] DBA deployed on JBoss (Wildfly)

2017-09-20 Thread Christian Grün
Hi Marco, The additional redirection could indicate that the session variable could not be set, or is being lost again. Maybe you could do some tracing/debugging in the DBA function that checks if a user is logged in [1]? Cheers, Christian [1]

Re: [basex-talk] Global locks

2017-09-20 Thread Christian Grün
> bxcode:inline-variables($xqcode-uri) as xs:string > @returns xquery code that is the source code from $xqcode-uri but with > inlining "constant" variables and operations applied > > This could be used as a preprocessor. > Is this something that could be created from the bits and pieces in the >