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.1.tar.gz (20.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for mysqlparse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7897183eabf11f7efc30cde8a1d4c36f8046c993bd407da5152e234560dbb2ae
MD5 996af93f2635412585784e1aa285417e
BLAKE2b-256 34fe5dbdcf83a73efc8c4fe1499c0c344c4e56f0c1aa1e1741992290a5e416d1

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