Skip to main content

Tree-sitter Grammar for SQL

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

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

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.9.tar.gz (826.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_sql-0.3.9-cp38-abi3-win_arm64.whl (333.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_sql-0.3.9-cp38-abi3-win_amd64.whl (343.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_sql-0.3.9-cp38-abi3-musllinux_1_2_x86_64.whl (379.4 kB view details)

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

tree_sitter_sql-0.3.9-cp38-abi3-musllinux_1_2_aarch64.whl (380.8 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

tree_sitter_sql-0.3.9-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (380.6 kB view details)

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

tree_sitter_sql-0.3.9-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (381.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

tree_sitter_sql-0.3.9-cp38-abi3-macosx_11_0_arm64.whl (341.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_sql-0.3.9-cp38-abi3-macosx_10_9_x86_64.whl (322.0 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_sql-0.3.9.tar.gz.

File metadata

  • Download URL: tree_sitter_sql-0.3.9.tar.gz
  • Upload date:
  • Size: 826.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tree_sitter_sql-0.3.9.tar.gz
Algorithm Hash digest
SHA256 0847b1a35652edcfa55fd3dd3c2c573cf4a9776fa2e388887f8ab02112fcc566
MD5 0144b14aad7c39ddfd9d9c423460242c
BLAKE2b-256 a44df721b74f7bf64c0ef9725a9ac78d29fb3854bfb9274f913c0deb3062cb38

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 8d3ed49c67bdb70addb752b27b0c15e17c44a434ff2f28787e62b7433055b117
MD5 12e3ff8f8209b34345f236e2263ea598
BLAKE2b-256 d9663c1d044c7432191dce573b877d9490b31431f7236f913b2f32735c907847

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5091fe6d7c6fe655038d94a2af2c31c3574c6be873740ad9cff17ecd2463db14
MD5 d3617cffd756e8584b0abcca7fd5a8f8
BLAKE2b-256 e9928d5ed5dcdf134d3042679cbea21391067fcb7277e54270cb616207d67253

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 97e885654dc7988f683ef919462f21656021839ce91f747ed1f025b07035d6f1
MD5 585350f95786bf8c9401133bc040cd5d
BLAKE2b-256 12baa1d4b93f82444acbabd8e77e0e7cfa4180a4fa942a3e018bfed5c0fc68db

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6a849cf29801a87a8bca757be93e286f075ea3673809062ed7133680ebdf6e99
MD5 9690510b3b14f82f3a9f5b799143ec72
BLAKE2b-256 fe02bc891d838aae2f82fe6ff272817c15bb6adbce89e79d3d26ebd64eae6b9a

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32ccd68dfceea1b56c7ea89499ac2ffeac32d46e50f43d0cc0ff396c7a060eb4
MD5 31c918587d105229737d262bbd37d59e
BLAKE2b-256 a55dea20f685e9b21fb3b3d8be167bb59cd081d6ad019f09066885dabaa25950

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8e8989cfe3dd9986b935502f747fcac44de76bf32c152664df65876a13035437
MD5 0c234c047c352160a100ee8e502c08d4
BLAKE2b-256 855d8c648f93c8529495b22b84dd7f208f3289595ee3b3fd17a2cf8ac7594468

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75bd16a723a495c0f5205192fb597c71298dab866389e9ce59895f81c68c2f12
MD5 013c17b38b8c45886169343f4154a446
BLAKE2b-256 8608ecf07a502975edefb36e47fd919d171b4a90339e9600d8d9f19bdf317586

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.9-cp38-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.9-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c33dc35a9ad23fca4bf4a96e45e235d0b675ae1d7ec9720fdcc5abf4ed1bcc60
MD5 ef04b3cf331b9d79e0d8d11f156c848f
BLAKE2b-256 eaf8a13301586308195e04c1aa8ac15520fe497e8c231ea260d19086003e765a

See more details on using hashes here.

Supported by

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