Changes

Jump to navigation Jump to search
47 bytes added ,  17:26, 19 July 2022
no edit summary
* The {{Code|query()}} method creates a query instance. Variables and the context item can be bound to that instance, and the result can either be requested via {{Code|execute()}}, or in an iterative manner with the {{Code|more()}} and {{Code|next()}} functions. If an error occurs, an exception will be thrown.
* The {{Code|create()}}, {{Code|add()}}, {{Code|replaceput()}} and {{Code|storeputbinary()}} methods pass on input streams to the corresponding database commands. The input can be a UTF-8 encoded XML document, a binary resource, or any other data (such as JSON or CSV) that can be successfully converted to a resource by the server.
* To speed up execution, an output stream can be specified by some clients; this way, all results will be directed to that output stream.
| <code>\09 {name} {path} {input}</code>
| <code>{info} \00</code>
| Adds a new resource document to the opened database.
|-
| REPLACEPUT
| <code>\0C {path} {input}</code>
| <code>{info} \00</code>
| Replaces a Puts (adds or replaces) an XML document resource with in the specified inputopened database.
|-
| STOREPUTBINARY
| <code>\0D {path} {input}</code>
| <code>{info} \00</code>
| Stores Puts (adds or replaces) a binary resource in the opened database.
|-
| ↯ error
* Add a document to the current database from an input stream:<br/><code>void add(String path, InputStream input)</code>
* Replace Put a document with the specified input stream:<br/><code>void replaceput(String path, InputStream input)</code>
* Store raw data Put a binary resource at the specified path:<br/><code>void storeputBinary(String path, InputStream input)</code>
* Return process information:<br/><code>String info()</code>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu