MarkLogic 10 Product Documentation
tde functions (Template Driven Extraction)

The tde functions are built-in functions for Extraction Templates. The tde namespace prefix is built into the server.

The tde (Template-driven Data Extraction) function module is installed as the following file:

install_dir/Modules/MarkLogic/tde.xqy

where install_dir is the directory in which MarkLogic Server is installed.

To use the tde.xqy module in your own XQuery modules, include the following line in your XQuery prolog:

import module "http://marklogic.com/xdmp/tde" at "/MarkLogic/tde.xqy"

The library uses the tde: namespace, predefined in the server.

6 functions
Function name Description
tde.columnGetPermissions This function returns the permissions granted to a protected column.
tde.columnRemovePermissions This function removes all permissions from a protected column.
tde.columnSetPermissions This function sets the permissions of a protected column.
tde.templateBatchInsert This function validates and inserts multiple templates, is similar to tde.templateInsert for individual template, throw errors for any invalid template or duplicate template URIs provided by sequence of argument with tde.templateInfo.
tde.templateInfo This function returns a map:map (object[]) containing individual template information used for inserting templates with tde:template-batch-insert().
tde.templateInsert This function validates the template, inserts the template as a document into the tde collection of the schema database (if executed on the content database) with the default permissions, and reindexes the database.
Powered by MarkLogic Server | Terms of Use | Privacy Policy