Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A node.js client for the BaseX server.
JavaScript XQuery XSLT
tag: v0.4.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
examples
lib
test
.gitignore
LICENSE
README.md
changelog.md
index.js
index.old.js
package.json

README.md

basex - a node.js Basex client

This is BaseX client for node.js. It is work in progress.

BaseX is an XML database, implemented as a lightweight JAVA server It supports XPath, Xquery and XSLT. It includes Full Text search and Update Extensions.

Installing the BaseX Node client

The easiest way to install is using npm. This module is available from the npm repository

    andy@ThinkPad-T42:/tmp$ mkdir project1;cd project1
    andy@ThinkPad-T42:/tmp/project1$ npm install basex
    basex@0.3.0 ./node_modules/basex 

Test it. This assumes BaseX is running on the host

    andy@ThinkPad-T42:/tmp/project1$ cd node_modules/basex/examples/
    andy@ThinkPad-T42:/tmp/project1/node_modules/basex/examples$ node Example.js 
    milliseconds: 0
    { result: '1 2 3 4 5 6 7 8 9 10',
      info: '\nQuery executed in 0.38 ms.\n' }
    end
    close
    andy@ThinkPad-T42:/tmp/project1/node_modules/basex/examples$ 

Installing BaseX

Requires Java. 1. Download from http://basex.org/products/download/all-downloads/ tested against BaseX version 7.0.1 1. run the basexserver script

Tests

..

TODO

Error handling, watch, reconnect...

Inspiration

Parts taken from https://github.com/mranney/node_redis

Something went wrong with that request. Please try again.