dba/settings  library module
R

Summary

Settings, garbage collection.
Authors
  • Christian Grün, BaseX Team 2005-23, BSD License
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
Type
Source ( 1 lines)
variable $dba:CAT := 'settings'

Functions

4.1 dba:settings-gc

Arities: #0R

Summary
Triggers garbage collection.
Signatures
dba:settings-gc ( ) as element(rest:response)
Return
  • element(rest:response) redirection
Invoked by 0 functions from 0 modules
    Annotations (2)
    %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
    webhttp://basex.org/modules/web

    6 RestXQ

    Paths defined 1.

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

    Source Code

    (:~
     : Settings, garbage collection.
     :
     : @author Christian Grün, BaseX Team 2005-23, 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.' })
    };