DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
147 stars 47 forks source link

Fix/update bindings #260

Closed grpse closed 1 month ago

grpse commented 2 months ago

Summary

trying to use inside of a node project, the binding when calling setLanguage from node tree-sitter, was throwing an error Type error: Invalid language object. This was due to the use of nan in the old binding from tree-sitter, but now it uses node-addon-api, so I've updated it. Also, for wasm build, the scanner.c uses strcpy, but it is not available symbol after compilation with new version of tree-sitter.

alexbit-codemod commented 1 month ago

thanks for working on this.... once this lands, we can integrate sql parser to ast-grep to enable automated code transformation of sql for a variety of use cases. so looking forward to it.