Changes

Jump to navigation Jump to search
207 bytes added ,  14:47, 13 July 2020
=Index Rewritings=
A major feature of BaseX is the ability to rewrite all kinds of query patterns for [[Indexes|database index access]]. The following queries will all be rewritten to exactly the same query that will eventually access an the text indexof a <code>factbook.xml</code> database instance (the file included in our full distributions):
<syntaxhighlight lang="xquery">
declare context item := db:open('factbook');
declare variable $DB := 'factbook';
//name[. = 'Shenzhen'],
//name[text() ! data() ! string() = 'Shenzhen'],
.//name[. = 'Shenzhen']
db:open($DB)//name[. = 'Shenzhen']
db:open('factbook')//name[. = 'Shenzhen'],
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu