Skip to main content

A library for parsing SQL statements.

Project description

https://img.shields.io/pypi/v/mysqlparse.svg https://img.shields.io/travis/seporaitis/mysqlparse.svg

A highly experimental attempt to have a sane parser library to parse MySQL statements.

At the moment - use it at your own risk!

Features

  • Inconsistently parses SOME SQL strings.

How can you help?

Read the generic CONTRIBUTORS.rst or here’s a short personal sentiment:

This is being built as a potential support for potential dba tools that we might write at work, so naturally certain things will be implemented sooner. Currently these are few use-cases we’re looking into:

  • Be able to provide suggestions to ALTER TABLE statements (e.g.: announce when a statement is potentially not backwards compatible with code)

  • Be able to generate commands for online schema change tools.

  • Potentially add some validation support, so that an SQL linting tool could be written.

Why?

Out of frustration for lack of a better tool.

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

mysqlparse-0.1.0.tar.gz (18.0 kB view details)

Uploaded Source

File details

Details for the file mysqlparse-0.1.0.tar.gz.

File metadata

  • Download URL: mysqlparse-0.1.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mysqlparse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 648061fde3227d0e0770063783daf11ff30a81147170e3183b91f39ea09b57b0
MD5 526e7b777579f0dc6577cea8153c60c2
BLAKE2b-256 842152d65f77cc1b9a1de93dba845060a4b8d53f98082685b6e52e537fe7f338

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page