🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

db-delivery

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-delivery

Micro node module for working with sqlite and mysql.

0.7.5
latest
71

Supply Chain Security

100

Vulnerability

82

Quality

76

Maintenance

100

License

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

DB Delivery

db-delivery is a node.js library for dealing with sqlite and mysql .

The package repo on github is here

The package on npm is here

It's consists of :

  • DB, a class the create the connection object.
  • Query, a query builder the build the query and have two properities
    • queryString, that holds the sql statements.
    • queryParams, that hodes the parameters.

Installation

Use the package manager [npm]

npm i db-delivery

Usage

const { db, Query } = require('db-delivery');

const conn = db.Connect('sqlite', 'path/to/sqlite/file');

let query = new Query();
qeruy.select('some, tables, in, database, tab.e')
.from('table name')
.where('column-name', '=', 'value');

let data = conn.get(query.getQueryString(), query.getQueryParams());

License

MIT

FAQs

Package last updated on 23 Nov 2020

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