dba/settings
library moduleR
Summary
Settings, garbage collection.
- Tags
Author: Christian Grün, BaseX Team 2005-21, BSD License
__source : settings/settings-gc.xqm
Imports
This module is imported by 0 modules. It imports 0 modules.
Variables
Functions
4.1 dba:settings-gc
Arities: dba:settings-gc#0R
dba:settings-gc
(
)
as
element(rest:response)
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:
Prefix | Uri |
---|---|
dba | dba/settings 2 |
rest | http://exquery.org/ns/restxq |
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.' })
};