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.1.0.tar.gz
(6.5 kB
view details)
File details
Details for the file paddl-0.1.0.tar.gz
.
File metadata
- Download URL: paddl-0.1.0.tar.gz
- Upload date:
- Size: 6.5 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 | b604277017b8102f1943dae60c3259e4a7a0d200c24ea03c709dbad2561530be |
|
MD5 | 6752fe2a8d920d0cd8acfc056d8706b7 |
|
BLAKE2b-256 | 6e8e05dd07c11a64ec41e3c510be85a4da3d9988ed55a28aa4c39ca7bb5e831f |