scaffolding.harmonize.xqy.writer.xqy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-data-hub Show documentation
Show all versions of marklogic-data-hub Show documentation
Library for Creating an Operational Data Hub on MarkLogic
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