Socket
Socket
Sign inDemoInstall

@nore/nql

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nore/nql

An extensible SQL query builder for SQLite


Version published
Maintainers
1
Install size
198 kB
Created

Readme

Source

@nore/nql

An extensible SQL query builder for SQLite.

import nql form "@nore/nql"

const query = {
  type: "select",
  table: "users",
  columns: ["company", "category"],
  where: {
    company: "Future Inc"
    age: { $gt: 25 },
  },
  offset: 200,
  limit: 100,
}

const [sql, values] = nql(query)

// sql    -> `SELECT "users"."name", "users"."age" FROM "users" WHERE "age" > $1 AND "company" == $2`
// values -> [25, "Future Inc"]

Installation

  $ npm install @nore/nql

Documentation

TODO: add documentation link


License MIT  ·  GitHub @nore  ·  Twitter @navaru

FAQs

Last updated on 08 Mar 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