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

Uploaded Source

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