List all documents in a database
Saturday, 19 May 2012 · 5 messages · last reply 20 May 2012
JE
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 at jenserat.de
[jabber]: xmpp:jabber at jenserat.de
[web]: http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Quoted text · Anupam Bakshi · 15 lines
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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
AB
Anupam Bakshi19 May 2012 16:01 #
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
AB
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?
Quoted text · Jens Erat · 1 line
> create database IVS
Database 'IVS' created in 106.53 ms.
Quoted text · Jens Erat · 1 line
> list
name Resources Size Input Path
------------------------------------------------------ IVS 1 4578
test 2 1837327 C:/Program Files (x86)/BaseX
2 Databases.
Quoted text · Jens Erat · 1 line
> 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.
Quoted text · Jens Erat · 1 line
> 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 at uni-konstanz.de>
To: Anupam Bakshi <bakshia at yahoo.com>
Cc: "basex-talk at mailman.uni-konstanz.de" <basex-talk at 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 at jenserat.de
[jabber]: xmpp:jabber at jenserat.de
[web]: http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Quoted text · Jens Erat · 15 lines
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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
JE
Jens Erat20 May 2012 14:33 #
Hi Anupam,
resources are defined on the [Databases page] of the manual.
Quoted text · Anupam Bakshi · 1 line
> 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 at jenserat.de
[jabber]: xmpp:jabber at jenserat.de
[web]: http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Quoted text · Anupam Bakshi · 82 lines
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 at uni-konstanz.de> > To: Anupam Bakshi <bakshia at yahoo.com> > Cc: "basex-talk at mailman.uni-konstanz.de" <basex-talk at 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 at jenserat.de > [jabber]: xmpp:jabber at 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 at mailman.uni-konstanz.de > > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > >
CG
Christian Grün20 May 2012 16:37 #
Hi Anupam,
as Jens indicated, you will find many hints on the notion of 'databases' and 'resources' in our documentation.
Quoted text · Jens Erat · 2 lines
>> 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
Quoted text · Jens Erat · 62 lines
>> >> 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 at uni-konstanz.de> >> To: Anupam Bakshi <bakshia at yahoo.com> >> Cc: "basex-talk at mailman.uni-konstanz.de" <basex-talk at 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 at jenserat.de >> [jabber]: xmpp:jabber at 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 at mailman.uni-konstanz.de >> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery