|
|
|||||||||||||||||
4.2.2 Metadata FunctionsThe below functions provide meta-data information about the XML database stored in MonetDB/XQuery.
We have tried to maintain ACID properties with respect to the document management functions
described above. This is achieved currently using a simple locking approach, which means that
it will block on conflicting document management functions (the shredding function If you rather trade consistency for not locking, you may use the
The pf:collections() function returns an XML node for each existing collection in the format: <collection updatable="true" size="64 KiB" numDocs="1">hello.xml</collection> and pf:documents() does likewise for all documents in all collections in the database: <document updatable="true" url="c:\HelloWorld.xml" collection="hello.xml">hello</document> The second variant of pf:documents() restricts the list to only documents from a certain collection. The pf:docname() function is a convenience function that given a node, returns the name of the document it stems from. |
||||||||||||||||||
| © 1994-2011 CWI | Contact us Legal HG web Bugs TestWeb | |||||||||||||||||