Skip to main content

Function: XQuery()

XQuery(config?): XQueryLanguage

Defined in: lang-xquery/src/language/language.ts:56

Creates a new XQuery language instance.

Parameters

ParameterTypeDescription
config?XQueryConfigConfiguration options for the XQuery language.

Returns

XQueryLanguage

A new XQuery language instance.

Example

import { DortDB } from '@dortdb/core';
import { XQuery } from '@dortdb/lang-xquery';

const db = new DortDB({ mainLang: XQuery() });
db.query('<greeting>{ 1 + 1 }</greeting>');