MarkLogic 9 Product Documentation
tde:get-view

tde:get-view(
   $schema as xs:string,
   $view as xs:string
) as map:map

Summary

This function returns a view's description using a schema and a view name.

Parameters
schema The schema name.
view The view name.

Example

xquery version "1.0-ml";

tde:get-view("Medical","Publications");
=>
{
  "view": {
    "id": "14910998190353932762",
    "name": "Publications",
    "schema": "Medical",
    "viewLayout": "identical",
    "columns": [
      {
        "column": {
          "id": "11565230576730337039",
          "name": "ID",
          "scalarType": "long",
          "nullable": 0
        }
      },
      {
        "column": {
          "id": "3103479464860941160",
          "name": "ISSN",
          "scalarType": "string",
          "nullable": 0
        }
      },
      {
        "column": {
          "id": "16141727252897579172",
          "name": "Volume",
          "scalarType": "string",
          "nullable": 0
        }
      }
    ]
  }
}
Powered by MarkLogic Server | Terms of Use | Privacy Policy