Miss any of our Open RFC calls?Watch the recordings here! »

gethue

4.6.5 • Public • Published

https://docs.gethue.com/developer/api/#sql-autocompletion

npm install gethue


import sqlAutocompleteParser from 'gethue/parse/sql/hive/hiveAutocompleteParser';

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
  )
);

Keywords

none

Install

npm i gethue

DownloadsWeekly Downloads

3

Version

4.6.5

License

Apache

Unpacked Size

16.2 MB

Total Files

377

Homepage

gethue.com

Last publish

Collaborators

  • avatar