List all documents in a database
Hello, I'm new to BaseX and XQuery, I wonder if someone can help with a simple question. I have added several documents to a BaseX database. Now I want to list and delete them. I didn't see commands to do that in the BaseX client 7.2.1. Any pointer or help will help me in understanding. Thanks, Anupam
Hi Anupam, you're probably locking for `LIST` and `DELETE`, also have a look at the [Commands documentation] in our wiki. If there are still open questions, don't hesitate to ask again. Kind regards from Lake Constance, Germany, Jens Erat [Commands documentation]: http://docs.basex.org/wiki/Commands -- Jens Erat [phone]: tel:+49-151-56961126 [mail]: mailto:email@jenserat.de [jabber]: xmpp:jabber@jenserat.de [web]: http://www.jenserat.de PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B Am 19.05.2012 um 14:01 schrieb Anupam Bakshi:
Hello, I'm new to BaseX and XQuery, I wonder if someone can help with a simple question.
I have added several documents to a BaseX database. Now I want to list and delete them. I didn't see commands to do that in the BaseX client 7.2.1.
Any pointer or help will help me in understanding.
Thanks, Anupam _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks Jens for the quick response, I really appreciate it. There are a few issues that trouble a newbie like me .... 1. What are resources? How are they counted?
create database IVS Database 'IVS' created in 106.53 ms. list name Resources Size Input Path ------------------------------------------------------ IVS 1 4578 test 2 1837327 C:/Program Files (x86)/BaseX
2 Databases. > list IVS Input Path Type Content-Type Size ------------------------------------ 0 Resources. NOTE : 'LIST' command said 1 resource, while 'LIST IVS' said 0 resource. 2. In the documentation, it seems that documents and resources are synonymous.
help list LIST ([path]) List databases or documents in database.
These are minor things. I'm off to a good start. I just wanted to mention them, in case someone else comes looking. Thanks for your help! Anupam ________________________________ From: Jens Erat <jens.erat@uni-konstanz.de> To: Anupam Bakshi <bakshia@yahoo.com> Cc: "basex-talk@mailman.uni-konstanz.de" <basex-talk@mailman.uni-konstanz.de> Sent: Saturday, May 19, 2012 8:04 AM Subject: Re: [basex-talk] List all documents in a database Hi Anupam, you're probably locking for `LIST` and `DELETE`, also have a look at the [Commands documentation] in our wiki. If there are still open questions, don't hesitate to ask again. Kind regards from Lake Constance, Germany, Jens Erat [Commands documentation]: http://docs.basex.org/wiki/Commands -- Jens Erat [phone]: tel:+49-151-56961126 [mail]: mailto:email@jenserat.de [jabber]: xmpp:jabber@jenserat.de [web]: http://www.jenserat.de PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B Am 19.05.2012 um 14:01 schrieb Anupam Bakshi:
Hello, I'm new to BaseX and XQuery, I wonder if someone can help with a simple question.
I have added several documents to a BaseX database. Now I want to list and delete them. I didn't see commands to do that in the BaseX client 7.2.1.
Any pointer or help will help me in understanding.
Thanks, Anupam _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Anupam, resources are defined on the [Databases page] of the manual.
Resources can either be XML documents or raw files (binaries).
So your assumption is totally right. Regards, Jens [Databases page]: http://docs.basex.org/wiki/Databases -- Jens Erat [phone]: tel:+49-151-56961126 [mail]: mailto:email@jenserat.de [jabber]: xmpp:jabber@jenserat.de [web]: http://www.jenserat.de PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B Am 19.05.2012 um 14:33 schrieb Anupam Bakshi:
Thanks Jens for the quick response, I really appreciate it.
There are a few issues that trouble a newbie like me ....
1. What are resources? How are they counted?
create database IVS Database 'IVS' created in 106.53 ms. list name Resources Size Input Path ------------------------------------------------------ IVS 1 4578 test 2 1837327 C:/Program Files (x86)/BaseX
2 Databases.
list IVS Input Path Type Content-Type Size
0 Resources. NOTE : 'LIST' command said 1 resource, while 'LIST IVS' said 0 resource.
2. In the documentation, it seems that documents and resources are synonymous.
help list LIST ([path]) List databases or documents in database.
These are minor things. I'm off to a good start. I just wanted to mention them, in case someone else comes looking.
Thanks for your help! Anupam
From: Jens Erat <jens.erat@uni-konstanz.de> To: Anupam Bakshi <bakshia@yahoo.com> Cc: "basex-talk@mailman.uni-konstanz.de" <basex-talk@mailman.uni-konstanz.de> Sent: Saturday, May 19, 2012 8:04 AM Subject: Re: [basex-talk] List all documents in a database
Hi Anupam,
you're probably locking for `LIST` and `DELETE`, also have a look at the [Commands documentation] in our wiki.
If there are still open questions, don't hesitate to ask again.
Kind regards from Lake Constance, Germany, Jens Erat
[Commands documentation]: http://docs.basex.org/wiki/Commands
-- Jens Erat
[phone]: tel:+49-151-56961126 [mail]: mailto:email@jenserat.de [jabber]: xmpp:jabber@jenserat.de [web]: http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Am 19.05.2012 um 14:01 schrieb Anupam Bakshi:
Hello, I'm new to BaseX and XQuery, I wonder if someone can help with a simple question.
I have added several documents to a BaseX database. Now I want to list and delete them. I didn't see commands to do that in the BaseX client 7.2.1.
Any pointer or help will help me in understanding.
Thanks, Anupam _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Anupam, as Jens indicated, you will find many hints on the notion of 'databases' and 'resources' in our documentation.
LIST ([path]) List databases or documents in database.
True, the wording is not up-to-date anymore (some time ago, we only stored "documents", and no binaries, in the database). I have updated this and some other text snippets in the latest snapshot [1]. Christian [1] http://docs.basex.org/wiki/Releases
These are minor things. I'm off to a good start. I just wanted to mention them, in case someone else comes looking.
Thanks for your help! Anupam
From: Jens Erat <jens.erat@uni-konstanz.de> To: Anupam Bakshi <bakshia@yahoo.com> Cc: "basex-talk@mailman.uni-konstanz.de" <basex-talk@mailman.uni-konstanz.de> Sent: Saturday, May 19, 2012 8:04 AM Subject: Re: [basex-talk] List all documents in a database
Hi Anupam,
you're probably locking for `LIST` and `DELETE`, also have a look at the [Commands documentation] in our wiki.
If there are still open questions, don't hesitate to ask again.
Kind regards from Lake Constance, Germany, Jens Erat
[Commands documentation]: http://docs.basex.org/wiki/Commands
-- Jens Erat
[phone]: tel:+49-151-56961126 [mail]: mailto:email@jenserat.de [jabber]: xmpp:jabber@jenserat.de [web]: http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Am 19.05.2012 um 14:01 schrieb Anupam Bakshi:
Hello, I'm new to BaseX and XQuery, I wonder if someone can help with a simple question.
I have added several documents to a BaseX database. Now I want to list and delete them. I didn't see commands to do that in the BaseX client 7.2.1.
Any pointer or help will help me in understanding.
Thanks, Anupam _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
participants (3)
-
Anupam Bakshi -
Christian Grün -
Jens Erat