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.11.tar.gz (834.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.11-cp310-abi3-win_arm64.whl (333.5 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_sql-0.3.11-cp310-abi3-win_amd64.whl (343.6 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_sql-0.3.11-cp310-abi3-musllinux_1_2_x86_64.whl (379.4 kB view details)

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

tree_sitter_sql-0.3.11-cp310-abi3-musllinux_1_2_aarch64.whl (380.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_sql-0.3.11-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (380.6 kB view details)

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

tree_sitter_sql-0.3.11-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (381.2 kB view details)

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

tree_sitter_sql-0.3.11-cp310-abi3-macosx_11_0_arm64.whl (341.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_sql-0.3.11-cp310-abi3-macosx_10_9_x86_64.whl (322.0 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_sql-0.3.11.tar.gz
  • Upload date:
  • Size: 834.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.11.tar.gz
Algorithm Hash digest
SHA256 700b93be2174c3c83d174ec3e10b682f72a4fb451f0076c7ce5012f1d5a76cbc
MD5 8b82849206d709f4a72fbb96555bac7c
BLAKE2b-256 e85c3d10387f779f36835486167253682f61d5f4fd8336b7001da1ac7d78f31c

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 8a1e42f0a2c9b01b23074708ecf5b8d21b9a0440e3dff279d8cf466cdf1a877e
MD5 1fe1a31b7fe497982b343ce0c35ed2f4
BLAKE2b-256 7760f10b8551f435d57a4748820ee30e66df2682820b2972375c2b89d2e5fb10

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c57b877702d218c0856592d33320c02b2dc8411d8820b3bf7b81be86c54fa0bb
MD5 cab72bb0a59172a598763ac2bc293b96
BLAKE2b-256 ebb357ff42dadd33c06fabe6c725de50e1625e1060f1571cc21a9260febadc1f

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0e22ea8de690dd9960d8c0c36c4cd25417b084e1e29c91ac0235fbdb3abb4664
MD5 0a181cd7f67a30642d90c419be9eaa73
BLAKE2b-256 52e9a7afd7f68ce165c040ce50e67bb05553784a8e17f37e057405d693fc869d

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 03cc164fcf7b1f711e7d939aeb4d1f62c76f4162e081c70b860b4fcd91806a38
MD5 96f37f1dd224293bbaf2b893abfb8943
BLAKE2b-256 941d06e9598799bd119e56f6e431d42c2f3a5c6dee858a5b6ad7633cc4d670aa

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-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.11-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5128b12f71ac0f5ebcc607f67a62cdc56a187c1a5ba7553feeb9c5f6f9bc3c72
MD5 997e261922609e1dfd74c88fb2dcac1d
BLAKE2b-256 1dc1eec7c09a9c94436ea4c56d096feba815e42b209b3d41a17532f99ecf0c67

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 344e99b59c8c8d72f7154041e9d054400f4a3fccc16c2c96ac106dde0e7f8d0c
MD5 7f369e5e94006839d8c8d1adb37209d0
BLAKE2b-256 8e967cee5661aa897e5d1a67499944ea5cf8a148953c1dc07a3059a50db8cb56

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a33cd6880ab2debef036f80365c32becb740ec79946805598488732b6c515fff
MD5 067caed6f324c9dbced6f1ca64fb7a51
BLAKE2b-256 0545b2bd5f9919ea15c4ae90a156999101ebd4caa4036babe54efaf9d3e77d55

See more details on using hashes here.

File details

Details for the file tree_sitter_sql-0.3.11-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_sql-0.3.11-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cf1b0c401756940bf47544ad7c4cc97373fc0dac118f821820953e7015a115e3
MD5 65d3a659f703e3900dd7f186e3780adc
BLAKE2b-256 3268bb80073915dfe1b38935451bc0d65528666c126b2d5878e7140ef9bf9f8a

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