Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

query-creator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

query-creator

Create SQL queries

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Sql Query Creator

A small nodejs module to create nice SQL queries without any dependency

Install

npm install query-creator

And then, import it:

const qc = require("query-creator");

Usage

let query = qc.new()
.select([
    'fieldOne',
    'fieldTwo'
], 'myTable')
.where( 'fieldOne = ?', [4])
.groupBy( 'fieldTwo' )
.val();
// now, query variable is :
// SELECT fieldOne, fieldTwo FROM myTable WHERE fieldOne = 4 GROUP BY fieldTwo;

Keywords

sql

FAQs

Package last updated on 01 Nov 2016

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