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.0.1.tar.gz (13.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.0.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lark_sqlpp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc6d0a9b362515765601b8d9d4b493e246da684e7bb00c8c97e0404c0ebe3df3
MD5 1579180d20fd3fef9af3ae753f5d20ab
BLAKE2b-256 a78a062ecc8c3b477f222ee1476b110d7c4c9090135f85162fc306a69a7ed6d9

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for lark_sqlpp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35f1e849938be878396783588508c8479144b889c43a06b62d1792ec9b71be0e
MD5 5cb9c340a507f59168ea0a87166cb9e4
BLAKE2b-256 ca701652d9b1034402ff10ff8495b1af6e8606dba76f2e17bd488d653d972adf

See more details on using hashes here.

Provenance

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