Socket
Book a DemoInstallSign in
Socket

ark-database

Package Overview
Dependencies
Maintainers
5
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ark-database

Wrapper for database access for locator-kn ark

18.3.0
latest
Source
npmnpm
Version published
Maintainers
5
Created
Source

ark-database

Database-Plugin for ark our application server of locator-app.com

Usage

npm install ark-database to install the plugin (use the option -S to include it in your project)

var Database = require('ark-database'); // import it to your code

var db = new Database('alice'); // set up database

// example calls
db.getUserById('1234567890', function(err, res) {
   console.log(res);
});

db.createTrip(newTrip,  function(err, res) {
   console.log(res);
});

db.deleteLocationById('12322456576567',  function(err, res) {
   console.log(res);
});

Note: We are slowly changing from using callbacks to promises (issue #35). When in doubt look up the source code.

Server administration

How to configure or maintain the actual database on our server, look here: Server-Administration

Tests

Tests can be run with npm test or make test, make test-cov and test-cov-html. Note: npm test points to make test-cov. This is inspired from many hapi plugins.

FAQs

Package last updated on 30 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.