Skip to content

ds-cbo/tree-sitter-sql

This branch is 181 commits behind DerekStride/tree-sitter-sql:main.

Folders and files

NameName
Last commit message
Last commit date
Jul 10, 2023
Dec 6, 2022
Mar 9, 2023
Sep 29, 2023
Oct 3, 2023
Dec 8, 2022
Oct 4, 2023
Dec 6, 2022
Mar 9, 2023
Nov 18, 2022
Jun 7, 2021
Oct 3, 2023
Oct 4, 2022
Apr 3, 2023
Dec 6, 2022
Oct 4, 2023
Sep 27, 2022
Jun 21, 2023

Repository files navigation

tree-sitter-sql

Build/test GitHub Pages

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 -o sql.so

Features

For a complete list of features see the the tests

References

Other projects

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.6%
  • Scheme 7.8%
  • Swift 1.1%
  • Other 1.5%