Skip to main content

Sql grammar for tree-sitter

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree-sitter-sql-0.3.5.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distributions

tree_sitter_sql-0.3.5-cp38-abi3-win_amd64.whl (301.3 kB view hashes)

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_sql-0.3.5-cp38-abi3-musllinux_1_2_x86_64.whl (333.3 kB view hashes)

Uploaded CPython 3.8+ musllinux: musl 1.2+ x86-64

tree_sitter_sql-0.3.5-cp38-abi3-musllinux_1_2_aarch64.whl (335.5 kB view hashes)

Uploaded CPython 3.8+ musllinux: musl 1.2+ ARM64

tree_sitter_sql-0.3.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (331.9 kB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

tree_sitter_sql-0.3.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (333.9 kB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tree_sitter_sql-0.3.5-cp38-abi3-macosx_11_0_arm64.whl (293.3 kB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

tree_sitter_sql-0.3.5-cp38-abi3-macosx_10_9_x86_64.whl (278.9 kB view hashes)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page