Watch
1
0
Fork
You've already forked tree-sitter-sql
0
No description
  • JavaScript 86.4%
  • Tree-sitter Query 6.9%
  • C 3.7%
  • CMake 2.6%
  • Shell 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann 6efd23c772
Releasing debian version 0.3.13-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-11-11 05:25:25 +01:00
.github/workflows Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
bindings Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
debian Releasing debian version 0.3.13-1. 2026-11-11 05:25:25 +01:00
docs Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
grammar Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
queries Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
scripts Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
src Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
target Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
test Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
.editorconfig Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
.gitattributes Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
.gitignore Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
binding.gyp Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
Cargo.toml Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
CHANGELOG.md Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
CMakeLists.txt Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
CONTRIBUTING.md Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
go.mod Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
grammar.js Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
LICENSE Adding upstream version 0.3.11. 2026-08-20 07:54:34 +02:00
Makefile Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
package-lock.json Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
package.json Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
Package.swift Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
pyproject.toml Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
README.md Adding upstream version 0.3.11. 2026-08-20 07:54:34 +02:00
setup.py Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00
tree-sitter.json Merging upstream version 0.3.13. 2026-11-11 05:25:10 +01:00

tree-sitter-sql

Build/test GitHub Pages npm package version

A general/permissive SQL grammar for tree-sitter.

Installation

We don't commit the generated parser files to the main branch. Instead, you can find them on the gh-pages branch. We're open to feedback & encourage you to open an issue to discuss any problems.

They are also hosted on the GitHub pages site and available for download here: github://derekstride/tree-sitter-sql/gh-pages.tar.gz.

Plugin maintainers ensure to specify the HEAD (or a specific revision) of the gh-pages branch when integrating with this project.

Step 1: Download the parser files

Using git

git clone https://github.com/DerekStride/tree-sitter-sql.git
cd tree-sitter-sql
git checkout gh-pages

Using curl

curl -LO https://github.com/DerekStride/tree-sitter-sql/archive/refs/heads/gh-pages.tar.gz
tar -xzf gh-pages.tar.gz
cd tree-sitter-sql-gh-pages

Step 2: Compile the Parser

Tree-sitter parsers need to be compiled as a shared-object / dynamic-library, you can enable this by passing the -shared & -fPIC flags to your compiler.

cc -shared -fPIC -I./src src/parser.c src/scanner.c -o sql.so

Using cargo

cargo add tree-sitter-sequel

Using npm

npm i @derekstride/tree-sitter-sql

Using pip

pip install tree-sitter-sql

Development

See CONTRIBUTING.md for documentation on how to set up the project for development.

Features

For a complete list of features see the the tests

References

Other projects