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