Skip to main content

Lark SQL++ grammar

Sql++ lark grammar implementation for python and (potentially) javascript.

Usage in python

Installing the package with pip:

pip install git+ssh://git@github.com/couchbaselabs/lark_sqlpp#egg=lark_sqlpp

Example usage

from lark_sqlpp import *

def main():
    # validate a query
    parse_sqlpp("SELECT 1")

    # extract collection paths
    collection_paths = extract_collections(parse_sqlpp("SELECT * FROM test"))

    # check if sqlpp script modifies data
    modifies_data(parse_sqlpp("UPDATE test SET x = y"))

    # check if sqlpp script modifies structure
    modifies_structure(parse_sqlpp("CREATE SCOPE test.scope"))

Download files

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

Source Distribution

lark_sqlpp-0.3.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

lark_sqlpp-0.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file lark_sqlpp-0.3.tar.gz.

File metadata

  • Download URL: lark_sqlpp-0.3.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lark_sqlpp-0.3.tar.gz
Algorithm Hash digest
SHA256 4e6d51ac0f86735eac12aa306f162bebdc5a40b37e72f39d5126a11938d8d3c5
MD5 59edffe6027562db151d60cc9723e74b
BLAKE2b-256 52f5516b4093f0fdea1b1236dbe34473119188c1d1cade4d4cd917c2ce8a4665

See more details on using hashes here.

Provenance

The following attestation bundles were made for lark_sqlpp-0.3.tar.gz:

Publisher: release.yml on couchbaselabs/lark_sqlpp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lark_sqlpp-0.3-py3-none-any.whl.

File metadata

  • Download URL: lark_sqlpp-0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lark_sqlpp-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b1e3ada7c5f0a320e11a971ed74281279a8104ff2e34fa927dd990a40b544c
MD5 c8fcf4f14687aa1b3a7f18f012431e08
BLAKE2b-256 8da46b98cb3fc0e7d63c4cd721ae645abbeae1405c1da94926e498782c6d47df

See more details on using hashes here.

Provenance

The following attestation bundles were made for lark_sqlpp-0.3-py3-none-any.whl:

Publisher: release.yml on couchbaselabs/lark_sqlpp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3 This release

2 files

0.2.1

2 files

0.1

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page