New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sql2adt

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql2adt

Run simple SQL queries against ADT files in Node.js

latest
Source
npmnpm
Version
1.5.0
Version published
Weekly downloads
26
2500%
Maintainers
1
Weekly downloads
 
Created
Source

sql2adt

Run SQL queries against ADT files in Node.js.

Supported SQL clauses (examples):

  • SELECT t1.Column1 AS col1 FROM table1 AS t1
  • SELECT ROWINDEX AS rownum
  • INNER JOIN table2 AS t2 ON t1.id = t2.id
  • WHERE t1.x >= 'aaa' AND t1.x <= 'zzz'
  • LIMIT 5
  • OFFSET 10

Restrictions:

  • Table names, column names and aliases must conform to [A-Za-z_][A-Za-z_0-9]*.
  • Columns in the SELECT clause must have aliases.
  • The WHERE clause only supports basic relative operators and AND.
  • ROWINDEX, LIMIT and OFFSET may only be used in queries on a single table with no WHERE clause.

For more examples of valid and invalid queries, consult the unit tests.

FAQs

Package last updated on 27 Aug 2018

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