Skip to content

Commit 664bfa7

Browse files
committed
[FIX] issue 14, improve formating/jsdoc
1 parent 6f427ae commit 664bfa7

33 files changed

Lines changed: 5456 additions & 372 deletions

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# basex - A BaseX client for node.js
22
===========================
33

4-
This is BaseX client for Node.js. It is work in progress. It uses the client interface via a socket connection to the BaseX server.
4+
This is BaseX client for Node.js. It is work in progress.
5+
It uses the [client interface](http://docs.basex.org/wiki/Server_Protocol)
6+
via a socket connection to the BaseX server.
57

68
[BaseX](http://basex.org/) is a very light-weight, high-performance and scalable
79
XML Database engine and XPath/XQuery 3.0 Processor,
@@ -38,7 +40,7 @@ Once BaseX is installed and the BaseX server is running, test it.
3840
## Installing BaseX
3941
1. Java is required
4042
1. [Download](http://basex.org/products/download/all-downloads/) and install BaseX
41-
(tested against version 7.6)
43+
(tested against version 7.7)
4244
1. Run `basexserver -S`
4345
4446
## API specification
@@ -89,6 +91,10 @@ mocha -R spec test/test-commands.js
8991
13 tests complete (408 ms)
9092

9193
```
94+
# Coding
95+
96+
Javascript is formated using js-beautify `js-beautify -r index.js`
97+
Documentation is generated using `jsdoc -r -d docs --verbose index.js`
9298
9399
94100
# TODO
@@ -98,7 +104,7 @@ mocha -R spec test/test-commands.js
98104
99105
# Inspiration
100106
Parts inspired by [node_redis](https://github.com/mranney/node_redis),
101-
[BaseX Java client](https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/basex/examples/api/BaseXClient.java)
107+
[BaseX Java client](https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/api/BaseXClient.java)
102108
103109
#license
104110

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v0.6.3 - 2014-04-03
2+
- fix handling for add where doc is invalid (#14)
3+
- fix tests
4+
- applied js-beautify to the code
5+
16
## v0.6.2 - 2013-07-13
27
- fix query array result timing issue (#10)
38
- fix session.create

debug.js

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
/* example functions for use as test callbacks
2-
* andy bunce 2011-2012
3-
*/
1+
/**
2+
* example functions for use as test callbacks
3+
* andy bunce 2011-2014
4+
**/
5+
6+
/**
7+
* @method print
8+
* @param {} err
9+
* @param {} reply
10+
* @return
11+
*/
412
function print(err, reply) {
513
if (err) {
614
console.log("Error: " + err);
715
} else {
816
console.dir(reply);
917
}
1018
};
11-
// show supplied msg then basex server response
19+
20+
/**
21+
* show supplied msg then basex server response
22+
* @method printMsg
23+
* @param {} msg
24+
* @return FunctionExpression
25+
*/
1226
function printMsg(msg) {
1327
return function(err, reply){
1428
console.log("printMsg: ",msg);

0 commit comments

Comments
 (0)