|
* {{Code|db:add("DB", "/home/dir/doc.xml")}} adds the file {{Code|/home/dir/doc.xml}} to the database {{Code|DB}}.
* {{Code|db:add("DB", "<a/>", "doc.xml")}} adds a document with content {{Code|<a/>}} to the database {{Code|DB}} under the name {{Code|doc.xml}}.
* {{Code|db:add("DB", <a/>, "doc.xml")}} adds a document node to the database {{Code|DB}} under the name {{Code|doc.xml}}.
* {{Code|db:add("DB", "/home/dir", "docs/dir")}} adds all documents in {{Code|/home/dir}} to the database {{Code|DB}} under the path {{Code|docs/dir}}.