Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ejdb

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejdb - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

9

node/ejdb.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc