dba/settings  library module
R

Summary

Settings, garbage collection.
Tags

Author: Christian Grün, BaseX Team 2005-21, BSD License

__source : settings/settings-gc.xqm

Related documents
ViewDescriptionFormat
xqdocxqDoc xml file from the source modulexml
xqparsexqparse xml file from the source modulexml

Imports

This module is imported by 0 modules. It imports 0 modules.

Variables

3.1 $dba:CAT

Summary
Top category
Type
xs:string

Functions

4.1 dba:settings-gc

Arities: dba:settings-gc#0R

Summary
Triggers garbage collection.
Signature
dba:settings-gc ( )  as element(rest:response)
Return
  • element(rest:response)redirection
Invokes 2 functions from 2 modules
  • {http://basex.org/modules/web}redirect#2
  • {http://www.w3.org/2005/xpath-functions}Q{java.lang.System}gc#0
Invoked by 0 functions from 0 modules
    Annotations
    %rest:POST()
    %rest:path('/dba/settings-gc')
    Source ( 5 lines)
    function dba:settings-gc(
    ) as element(rest:response) {
      Q{java.lang.System}gc(),
      web:redirect($dba:CAT, map { 'info': 'Garbage collection was triggered.' })
    }

    Namespaces

    The following namespaces are defined:

    PrefixUri
    dbadba/settings 2
    resthttp://exquery.org/ns/restxq

    6 RestXQ

    Paths defined 1.

    PathMethodFunction
    /dba/settings-gcPOSTdba:settings-gc#0

    Source Code

    (:~
     : Settings, garbage collection.
     :
     : @author Christian Grün, BaseX Team 2005-21, BSD License
     :)
    module namespace dba = 'dba/settings';
    
    (:~ Top category :)
    declare variable $dba:CAT := 'settings';
    
    (:~
     : Triggers garbage collection.
     : @return redirection
     :)
    declare
      %rest:POST
      %rest:path('/dba/settings-gc')
    function dba:settings-gc(
    ) as element(rest:response) {
      Q{java.lang.System}gc(),
      web:redirect($dba:CAT, map { 'info': 'Garbage collection was triggered.' })
    };