dba/queries
library moduleR
Summary
Save query.
- Tags
Author: Christian Grün, BaseX Team 2005-21, BSD License
__source : queries/query-close.xqm
Imports
This module is imported by 0 modules. It imports 1 modules.
Variables
None
Functions
4.1 dba:query-save
Arities: dba:query-save#1R
dba:query-save
(
$name
as
xs:string
)
as
empty-sequence()
- name
as
xs:string
name of query file
empty-sequence()
Invokes 1 functions from 1 modules
Invoked by 0 functions from 0 modules
Annotations
%rest:POST | () |
%rest:path | ('/dba/query-close') |
%rest:query-param | ('name','{$name}') |
Source ( 5 lines)
function dba:query-save(
$name as xs:string
) as empty-sequence() {
config:query('')
}
Namespaces
The following namespaces are defined:
Prefix | Uri |
---|---|
config | dba/config |
dba | dba/queries 2 3 4 5 |
rest | http://exquery.org/ns/restxq |
Source Code
(:~
: Save query.
:
: @author Christian Grün, BaseX Team 2005-21, BSD License
:)
module namespace dba = 'dba/queries';
import module namespace config = 'dba/config' at '../lib/config.xqm';
(:~
: Closes a query file.
: @param $name name of query file
:)
declare
%rest:POST
%rest:path('/dba/query-close')
%rest:query-param('name', '{$name}')
function dba:query-save(
$name as xs:string
) as empty-sequence() {
config:query('')
};