Loading TOC...

MarkLogic 10 Product Documentation
temporal:get-use-lsqt

temporal:get-use-lsqt(
   $temporal-collection as xs:string
) as xs:boolean

Summary

This function specifies whether the named temporal collection has LSQT (Last Stable Query Time) enabled (true) or disabled (false).

For details on how to use LSQT, see Last Stable Query Time (LSQT) and Application-controlled System Time in the Temporal Developer's Guide

Parameters
temporal-collection The name of the temporal collection.

Example


xquery version "1.0-ml"; 
 
import module namespace temporal = "http://marklogic.com/xdmp/temporal" 
      at "/MarkLogic/temporal.xqy";
 
temporal:get-use-lsqt("kool")

(: Returns 'true' if LSQT is enabled on the "kool" collection; 
   otherwise returns 'false'. :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.