All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scaffolding.harmonize.xqy.writer.xqy Maven / Gradle / Ivy

There is a newer version: 6.1.1
Show newest version
xquery version "1.0-ml";

module namespace plugin = "http://marklogic.com/data-hub/plugins";

declare option xdmp:mapping "false";

(:~
 : Writer Plugin
 :
 : @param $id       - the identifier returned by the collector
 : @param $envelope - the final envelope
 : @param $options  - a map containing options. Options are sent from Java
 :
 : @return - nothing
 :)
declare function plugin:write(
  $id as xs:string,
  $envelope as item(),
  $options as map:map) as empty-sequence()
{
  xdmp:document-insert($id, $envelope, xdmp:default-permissions(), map:get($options, "entity"))
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy