1.0.8 • Published 6 years ago

exist-query v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

exist-query

Browser-friendly eXist-db XQuery executor. Well, to be honest, it's actually browser-first, because of the dependency on the Fetch API and the btoa() function. However, these dependencies will be sorted out soon.

Usage

Using exist-query is pretty simple. First obtain a connection:

const connectionOptions = {
    uri: 'localhost:8080/exist',
    credentials: {
        username: 'admin',
        password: 'admin'
    }
};

const connection = require('exist-query')(connectionOptions);

Then you can issue queries through this connection:

connection.query('insert XQuery here', {
    start: 1,
    max: 1024,
    cache: false,
    sessionId: ''
}, {
    additional: 'properties',
    see: 'exist documentation'
}).then(response => console.log(response));
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago