David Sferruzza
David Sferruzza
Hi! I confirm this fixes the issue in my setup too! Thanks for the workaround! > That sounds like this is a bug in the Synology SFTP implementation. It makes...
Hi! You are right: `sql2ast` implementation is really bad. At the time I wrote it, I didn't know much about parsers. I read some theory when I started to think...
I agree: it works well for a prototype. I'm also starting to see the limits, so it definitely needs to be rewritten. The feature `sql2ast('SELECT * FROM Table') == sql2ast('FROM...
Today, I started to re-think the AST. The AST from the current v1 is not so bad, but it doesn't have a fixed structure. I mean the parser doesn't guarantee...
I'm happy to read from you! About writing the parser, I am trying to choose between 3 solutions: - write a top-down parser by hand - use PEG.js (http://pegjs.majda.cz/) -...
I pushed a new branch: https://github.com/dsferruzza/simpleSqlParser/tree/v2 It uses a parser combinator: https://github.com/jayferd/parsimmon/ There are still lots of problems to solve, but I hope to catch up v1's features.
v2 is going well! I think I will release it soon! Did you have a look, @jaheba ? https://github.com/dsferruzza/simpleSqlParser/tree/v2
I don't really know require.js, so I can't tell for now... simpleSqlParser v2 just need an object called `Parsimmon` to be in the global scope, or it will `require` it....
At first I was skeptical about parser combinators, but after trying (and having written a top-down parser by hand in the past) I really like the ease it offers to...
Hi! I thought the syntax for multiple insertions was: ```sql INSERT INTO mytable (id,first_name,last_name) VALUES (1,'John','Doe'), (2,'Jane','Doe'), (3,'Donald','Trump') ``` I guess both work... But anyway this is not currently supported...