tree-sitter-sql
v0.1.0
Published
SQL grammar from tree-sitter
Downloads
75
Readme
SQL syntax for tree-sitter
This project initially focuses on PostgreSQL flavor of SQL
Development
File describing grammar is grammar.js
Every time the grammar file changes code generation needs to be run by invoking npm run gen
npm test
command automatically performs code generation
Tests files are located in test/corpus
Here is the documentation on test file syntax
Running tests
npm install --also=dev
npm test
Debbuging
npm run parse <file.sql>
outputs a syntax treenpm run extract-error <file.sql>
shows first offending line