Parse Any DDL
Project description
paddl: Parse Any DDL
Parse DDLs into objects using python.
Ambitious title, supported SQL languages include:
- Rudamentary
CREATE TABLEimplemented, pursuing MySQL 8 first.
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.3.0.tar.gz
(11.4 kB
view details)
File details
Details for the file paddl-0.3.0.tar.gz.
File metadata
- Download URL: paddl-0.3.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4394444b46324077c261998a48d54a52deea60ffca13a178adc66a409fe6bf7
|
|
| MD5 |
39445d27be15db49a59e78a7964d7ed4
|
|
| BLAKE2b-256 |
0a9a34d1c3e103624430fbb5722bcfb18e2dcf053ae662ed96a0adeb4875bde6
|