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.
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.1.2.tar.gz
(6.8 kB
view details)
File details
Details for the file paddl-0.1.2.tar.gz
.
File metadata
- Download URL: paddl-0.1.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.7.1 requests/2.25.1 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c815d3a695809056fe6f8b9f7e0db03d4951f967262581379810c842d6199834 |
|
MD5 | 2f850dae3ea134864489cb9a3f6b02ee |
|
BLAKE2b-256 | 750c04ff22163a9af516257efde81d425259532c8ba4f9275c4a371d974082ba |