Skip to content

Instantly share code, notes, and snippets.

Dannes Wessels dizzzz

View GitHub Profile
@dizzzz
dizzzz / duplicates_in_sequence.xq
Last active Sep 4, 2018
xquery find duplicates in sequence
View duplicates_in_sequence.xq
(: wolfgang :)
for $i in (1, 5, 2, 4, 5)
group by $j := $i
return
    $j || ": " || count($i)
(: adam :)
let $seq := (1, 5, 2, 4, 5)
return
    distinct-values(
@dizzzz
dizzzz / functionSignatureTests.xquery
Last active Apr 8, 2019
A script to generate function-signature-tests for xquery functions in eXist-db
View functionSignatureTests.xquery
xquery version "3.1";
module namespace xqfunctions="http://exist-db.org/xquery/test/xqfunctions";
import module namespace inspect="http://exist-db.org/xquery/inspection" at "java:org.exist.xquery.functions.inspect.InspectionModule";
declare namespace test="http://exist-db.org/xquery/xqsuite";
declare function xqfunctions:cardinality($cardinality as xs:string) as xs:string {
@dizzzz
dizzzz / log4j.xml
Created Nov 20, 2016
eXist-db v2.2: set messaging/replication loglevel to debug
View log4j.xml
<!-- messaging -->
<category name="com.exist.jms" additivity="false">
<priority value="debug"/>
<appender-ref ref="exist.core"/>
</category>
You can’t perform that action at this time.