Hi,
I know that I can use:
fn:doc("$collections")/collections/collection
to get collections from the database, but when doing so I get ALL
collections, for example:
<collection name="$modules"/>
<collection name="Contacts"/>
<collection name="RecordTemplate"/>
<collection name="SystemUsers"/>
<collection name="docs"/>
Some collections I made, and others are system related (SystemUsers,
$modules). If I want to do an operation across collections, or if I want do
delete all collections that I've
made, I could manually filter the system related ones, but that approach
would require me hardcoding the system collection names. If I do that and a
new collection is added, or existing collection renamed or removed, then I
could run into troubles. So, I have a question and a suggestion:
Q. Is there a way to only get NON-system collections? ie. collections that
I've created
Suggestion: right now we have the CREATE, DELETE, and RENAME xquery
statements for collections, but a LIST command would be very helpful when
managing collection as well. Its like the 'R' in CRUD was left out for some
reason that I'm not aware of...
Thanks for any help!
Mark
------------------------------------------------------------------------------
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion