Socket
Socket
Sign inDemoInstall

db-delivery

Package Overview
Dependencies
128
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    db-delivery

Micro node module for working with sqlite and mysql.


Version published
Weekly downloads
4
Maintainers
1
Install size
18.4 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 23 Nov 2020

Did you know?

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc