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

mg-dbx

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mg-dbx - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

bin/winx64/node10/mg-dbx.node

12

package.json

@@ -5,3 +5,3 @@ {

"description": "High speed Synchronous and Asynchronous access to M-like databases from Node.js.",
"version": "1.0.3",
"version": "1.0.4",
"maintainers": "Chris Munt <cmunt@mgateway.com>",

@@ -22,5 +22,9 @@ "homepage": "https://github.com/chrisemunt/mg-dbx",

"keywords": [
"tcp",
"http",
"network"
"nosql",
"intersystems",
"cache",
"iris",
"yottadb",
"m",
"mumps"
],

@@ -27,0 +31,0 @@ "scripts": {

@@ -6,4 +6,6 @@ # mg-dbx

Chris Munt <cmunt@mgateway.com>
28 June 2019, M/Gateway Developments Ltd [http://www.mgateway.com](http://www.mgateway.com)
7 September 2019, M/Gateway Developments Ltd [http://www.mgateway.com](http://www.mgateway.com)
* Verified to work with Node.js v4 to v12.
* [Release Notes](#RelNotes) can be found at the end of this document.

@@ -110,6 +112,10 @@ ## Pre-requisites

#### Register a global name
#### Register a global name (and fixed key)
var person = db.mglobal("Person");
global := db.mglobal(<global_name>[, <fixed_key>])
Example (using a global named "Person"):
var person = db.mglobal("Person");
#### Set a record

@@ -119,7 +125,7 @@

var result = person.set(<key>, <data>);
var result = <global>.set(<key>, <data>);
Asynchronous:
person.set(<key>, <data>, callback(<error>, <result>));
<global>.set(<key>, <data>, callback(<error>, <result>));

@@ -134,7 +140,7 @@ Example:

var result = person.get(<key>);
var result = <global>.get(<key>);
Asynchronous:
person.set(<key>, callback(<error>, <result>));
<global>.set(<key>, callback(<error>, <result>));

@@ -149,7 +155,7 @@ Example:

var result = person.delete(<key>);
var result = <global>.delete(<key>);
Asynchronous:
peeson.delete(<key>, callback(<error>, <result>));
<global>.delete(<key>, callback(<error>, <result>));

@@ -165,7 +171,7 @@ Example:

var result = person.defined(<key>);
var result = <global>.defined(<key>);
Asynchronous:
person.defined(<key>, callback(<error>, <result>));
<global>.defined(<key>, callback(<error>, <result>));

@@ -181,7 +187,7 @@ Example:

var result = person.next(<key>);
var result = <global>.next(<key>);
Asynchronous:
person.next(<key>, callback(<error>, <result>));
<global>.next(<key>, callback(<error>, <result>));

@@ -200,7 +206,7 @@ Example:

var result = person.previous(<key>);
var result = <global>.previous(<key>);
Asynchronous:
person.previous(<key>, callback(<error>, <result>));
<global>.previous(<key>, callback(<error>, <result>));

@@ -215,2 +221,17 @@ Example:

#### Reset a global name (and fixed key)
<global>.reset(<global_name>[, <fixed_key>]);
Example:
// Process orders for customer #1
customer_orders = db.mglobal("Customer", 1, "orders")
do_work ...
// Process orders for customer #2
customer_orders.reset("Customer", 2, "orders");
do_work ...
### Invocation of database functions

@@ -268,1 +289,12 @@

## <a name="RelNotes"></a>Release Notes
### v1.0.3 (28 June 2019)
* Initial Release
### v1.0.4 (7 September 2019)
* Allow a global to be registered with a fixed leading key (i.e. leading fixed subscripts).
* Introduce a method to reset a global name (and any associated fixed keys).

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

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

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

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

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

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