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.1.tar.gz (14.1 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.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lark_sqlpp-0.1.tar.gz
  • Upload date:
  • Size: 14.1 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.1.tar.gz
Algorithm Hash digest
SHA256 a70733aa35998e846a32bd5b6d3c43a9b19a6330a30855c33c2b475837dbbffa
MD5 422015f24bde0fb5ec5559e9d450cc60
BLAKE2b-256 cb62b636fc0e0815bd7706e12c3dfbbe8c957ba2b2e39f9a36e66fbebc16f4ba

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lark_sqlpp-0.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d844a43c99c29736cd55813937668a01c69d58213f5daea626750b3df126b63a
MD5 b840c4655d8f2e6b8d4b3ef0115385f7
BLAKE2b-256 f88f667507dd00cdef3c7e1c8b5dda2061f5798823fd85f75437e3703812fa37

See more details on using hashes here.

Provenance

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