AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.

Home Page:http://alasql.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

insert into tbl(fld1, fld2) values(1,2)

mathiasrw opened this issue · comments

According to #1806 (comment) alasql does not support

insert into tbl(fld1, fld2) values(1,2)

Hi @mathiasrw can i work on this issue? and can you pls provide me some more information to move forward.

Sure!

Fist, have a look at https://github.com/AlaSQL/alasql/blob/develop/CONTRIBUTING.md and then use the yarn jison command before running yarn test

BUT

the last few months I have had problems with compiling a new jison. Some deep dependencies have been updated and now I cant recreate a version that produces a jison parser that works.

Sooooo - what would be really helpful and first step to this, would be to make sure that yarn jison && yarn test is running. You will see that the version in src/alasqlparser.js is currently 0.4.18 and after recompiling goes to something else (i think its 0.6).

The way forward is to

  • a) get it back to use v 0.4.18 by using the resolutions field to overwrite (deep)dependency versions
  • or
  • b) to find out why the generated alasqlpartser.js does not work.

The fix for b) is the smalles (as its probably a naming thing or something else that is slightly different) but timewise it will probably be faster to go with a). So - it really depends on your appetite for adventure...