🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

sql-hive-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-hive-parser

Parse sql or hive query

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

sql-parser

Userful minimal parser for sql and hive quires.

Note

We are not official author of this library, We pick few useful files to just parse query & get errors + suggestedKeywords

Please visit official website for more info

How to use

Download or clone this repo by using belowe command

git clone https://github.com/deuex-solutions/sql-parser.git

Refer below example for use.

**import** sqlAutocompleteParser from 'sql-parser';

const beforeCursor = 'SELECT col1, col2, tbl2.col3 FROM tbl; '; // Note extra space at end
const afterCursor = '';
const dialect = 'hive';
const debug = false;

console.log(
  JSON.stringify(
    sqlAutocompleteParser.parseSql(beforeCursor, afterCursor, dialect, debug),
    null,
    2
  )
);

Contribute

Found an issue? Post it in the issue tracker.
Want to add another awesome feature? Fork this repository and add your feature, then send a pull request.

License

The MIT License (MIT)

Keywords

sql

FAQs

Package last updated on 16 Apr 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