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
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.0.2.tar.gz
(4.3 kB
view details)
File details
Details for the file paddl-0.0.2.tar.gz
.
File metadata
- Download URL: paddl-0.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.7.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd6891a1b08f775bd184feef1667d2e1ea9056afd29c4d5b88b00322aec7247 |
|
MD5 | 7d51e8bdea6df0f8ed03c4c65d83f095 |
|
BLAKE2b-256 | 8cd2a4c797ad96c22d68161fd92d8934cae123ba663552e25fc0d0282c36d361 |