Skip to main content

Parse Any DDL

Project description

paddl: Parse Any DDL

Parse DDLs into objects using python.

Ambitious title, supported SQL languages include:

  • Rudamentary CREATE TABLE implemented, pursuing MySQL 8 first.
    • CONSTRAINTS parsed, including FOREIGN KEYs.
from paddl import parse, ColType

schema = parse("CREATE TABLE employees (id int, name varchar(255));", 'mysql')
table = schema.tables[0]

table.name 
# "employees"

table.columns

column = table.columns[0]
column.name == 'id'
column.type == ColType.INT

command line

paddl offers "No Code" CLI solutions, such as rendering ER Diagrams.

> python -m paddl
usage: paddl [-h] [--erd] sql

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

paddl-0.2.0.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file paddl-0.2.0.tar.gz.

File metadata

  • Download URL: paddl-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.7.1 requests/2.25.1 setuptools/62.3.2 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.13

File hashes

Hashes for paddl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21687f4194d9408287fbb27b9bff6cbf1e6848d392b6aa27749b65100f882ac6
MD5 4b1bd8bc8a6fc47fe48e1c08518a9393
BLAKE2b-256 ea2877a35a76d4d48408b43c27d6a83dc1bcd6845c337d054922ab04482e23e0

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