Comparing version 1.0.9 to 1.0.10
@@ -210,7 +210,12 @@ var ejdblib; | ||
* - $orderby Sorting order of query fields. | ||
* Eg: ORDER BY field1 ASC, field2 DESC | ||
* - $fields Set subset of fetched fields | ||
* Example: | ||
* hints: { | ||
* "$orderby" : { | ||
* "$orderby" : { //ORDER BY field1 ASC, field2 DESC | ||
* "field1" : 1, | ||
* "field2" : -1 | ||
* }, | ||
* "$fields" : { //SELECT ONLY {_id, field1, field2} | ||
* "field1" : 1, | ||
* "field2" : 1 | ||
* } | ||
@@ -217,0 +222,0 @@ * } |
{ | ||
"name" : "ejdb", | ||
"version" : "1.0.9", | ||
"version" : "1.0.10", | ||
"main" : "node/ejdb.js", | ||
@@ -5,0 +5,0 @@ "description" : "EJDB - Embedded JSON Database engine", |
@@ -1,3 +0,1 @@ | ||
EJDB - Embedded JSON Database engine | ||
@@ -280,9 +278,14 @@ ==================================== | ||
- $orderby Sorting order of query fields. | ||
Eg: ORDER BY field1 ASC, field2 DESC | ||
hints: { | ||
"$orderby" : { | ||
"field1" : 1, | ||
"field2" : -1 | ||
} | ||
} | ||
- $fields Set subset of fetched fields | ||
Example: | ||
hints: { | ||
"$orderby" : { //ORDER BY field1 ASC, field2 DESC | ||
"field1" : 1, | ||
"field2" : -1 | ||
}, | ||
"$fields" : { //SELECT ONLY {_id, field1, field2} | ||
"field1" : 1, | ||
"field2" : 1 | ||
} | ||
} | ||
@@ -456,3 +459,3 @@ Many C API query examples can be found in `tcejdb/testejdb/t2.c` test case. | ||
```C | ||
~~~~~~ | ||
#include <tcejdb/ejdb.h> | ||
@@ -519,3 +522,3 @@ | ||
} | ||
``` | ||
~~~~~~ | ||
@@ -549,7 +552,8 @@ You can save this code in `csnippet.c` And build: | ||
-------------------------------- | ||
```sh | ||
~~~~~~ | ||
cd ./tcejdb | ||
./configure --disable-bzip --prefix=<installation prefix> && make && make check | ||
make install | ||
``` | ||
~~~~~~ | ||
* library name: **tcejdb** (with pkgconfig) | ||
@@ -567,3 +571,3 @@ * main include header: ```<tcejdb/ejdb.h>``` | ||
``` | ||
~~~~~~ | ||
/** | ||
@@ -611,7 +615,12 @@ * Create query object. | ||
* - $orderby Sorting order of query fields. | ||
* Eg: ORDER BY field1 ASC, field2 DESC | ||
* - $fields Set subset of fetched fields | ||
* Example: | ||
* hints: { | ||
* "$orderby" : { | ||
* "$orderby" : { //ORDER BY field1 ASC, field2 DESC | ||
* "field1" : 1, | ||
* "field2" : -1 | ||
* }, | ||
* "$fields" : { //SELECT ONLY {_id, field1, field2} | ||
* "field1" : 1, | ||
* "field2" : 1 | ||
* } | ||
@@ -630,3 +639,3 @@ * } | ||
EJDB_EXPORT EJQ* ejdbcreatequery(EJDB *jb, bson *qobj, bson *orqobjs, int orqobjsnum, bson *hints); | ||
``` | ||
~~~~~~ | ||
@@ -644,3 +653,3 @@ EJDB C Samples | ||
``` | ||
~~~~~~ | ||
. | ||
@@ -652,3 +661,3 @@ ├── <dbname> | ||
└── <dbname>_<collectionN>_<fieldpath>.<index ext> | ||
``` | ||
~~~~~~ | ||
@@ -655,0 +664,0 @@ Where |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4806442
878
671