Re: [basex-talk] command script / batch-processing of xqueries
Hello Günter, Did you have a look at http://docs.basex.org/wiki/Commands#Command_Scripts You can use several XQUERY or RUN commands, and the SET command to configure the db or index options. Best regards, Fabrice Etanchaud Horanet Smart Objects -Message d'origine- De : basex-talk-boun...@mailman.uni-konstanz.de [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Günter Dunz-Wolff Envoyé : lundi 18 avril 2016 16:52 À : BaseX; Christian Grün Objet : [basex-talk] command script / batch-processing of xqueries Hi all, hi Christian, I'm running some xqueries to create and update basex dbs over and over again. They all depend on the basic db 'mydata'. Whenever mydata is updated, I have to update the other dbs. 1. xq-file: db:create('mydata', path/to/my/xml . 2. xq-file: db:create('searchindex', let $data0 := db:open('mydata') . 3. xq-file: db:create('indd-xml', let $data0 := db:open('mydata') 4. and so on First question: Is there any way to put the whole process into one command-script? Or is there any kind of other batch-processing? Second question: So far I'm creating the db 'mydata' with the GUI. I want to integrate the creating into the batch-processing via XQuery. In generell I know the create-command, but where to put the options: use XInclude, chop-whitespace OFF and Fulltext Language German internal, Stemming OFF, Case Sensitive and Diacritics ON? Can't find it in the docs. Thanks for any help, Günter
Re: [basex-talk] Non-default admin user/pw for BaseX on Docker image
Hi Mike and Andy, > Andy is right, when I create a new docker image and copy the user.xml to > /srv/BaseXData then I can authenticate with the credentials defined in > user.xml. As the passwords are encrypted I just used the DBA webconsole > to change the admin password on my local machine and then I can use this > file when creating the docker image, i.e. in the Dockerfile I added the > following line: > > COPY users.xml /srv/BaseXData/ > > > I think it should be clarified in the official > documentation: http://docs.basex.org/wiki/Docker#BaseX_Configuration > (changing the admin password has no effect...) I just added some information to the Docker documentation page: http://docs.basex.org/wiki/Docker If you have more helpful information to add to he documentation, it is written using a Wiki and everybody's invited to improve it, but you'll have to request an account to prevent spam before: http://docs.basex.org/wiki/Special:RequestAccount I'm still investigating an issue together with Docker which prevents the automated builds from automatically adding new releases, but I hope this will be resolved in the next few days. Regards, Jens -- Jens Erat [phone]: tel:+49-151-56961126 [mail]: mailto:em...@jenserat.de [jabber]: xmpp:jab...@jenserat.de [web]: http://www.jenserat.de OpenPGP: 0D69 E11F 12BD BA07 7B37 26AB 4E1F 799A A4FF 2279 smime.p7s Description: S/MIME Cryptographic Signature
[basex-talk] command script / batch-processing of xqueries
Hi all, hi Christian, I'm running some xqueries to create and update basex dbs over and over again. They all depend on the basic db 'mydata'. Whenever mydata is updated, I have to update the other dbs. 1. xq-file: db:create('mydata', path/to/my/xml . 2. xq-file: db:create('searchindex', let $data0 := db:open('mydata') . 3. xq-file: db:create('indd-xml', let $data0 := db:open('mydata') 4. and so on First question: Is there any way to put the whole process into one command-script? Or is there any kind of other batch-processing? Second question: So far I'm creating the db 'mydata' with the GUI. I want to integrate the creating into the batch-processing via XQuery. In generell I know the create-command, but where to put the options: use XInclude, chop-whitespace OFF and Fulltext Language German internal, Stemming OFF, Case Sensitive and Diacritics ON? Can't find it in the docs. Thanks for any help, Günter