Skip to main content

A package containing lark grammar and parser method for sqlpp

Project description

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"))

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

lark_sqlpp-0.2.1.tar.gz (14.4 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.2.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lark_sqlpp-0.2.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lark_sqlpp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d8254060dbb41d86e52c1ad9e3bf0d5a696dba2ae8fde4fdeb83bb719bec55cc
MD5 23a6cb4a434dbbd1ee5b4041ea5c3116
BLAKE2b-256 956098270478d50883d8d9730182d4c8d8c8dc17a2c382ff60d36b74b97a1fb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for lark_sqlpp-0.2.1.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.2.1-py3-none-any.whl.

File metadata

  • Download URL: lark_sqlpp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lark_sqlpp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72432f4b3d7404453921467c3c933217d5989f45ae2c830299c96a87df2a838c
MD5 cc17bc812de51c323b10fb32623586e8
BLAKE2b-256 0e231b14f83d46e68efb361113a2f284fd321883f3d63371b817580601c4fd5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lark_sqlpp-0.2.1-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.

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