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.1.tar.gz
(6.6 kB
view details)
File details
Details for the file paddl-0.1.1.tar.gz
.
File metadata
- Download URL: paddl-0.1.1.tar.gz
- Upload date:
- Size: 6.6 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 | 4b25b0e3d31595364bee6a51a23b54184020e5bdf592322f68de7bae81cdc83a |
|
MD5 | 2ee22c1e8271891c2036472f012795fc |
|
BLAKE2b-256 | 17aa7846d858ca0959f1bb205ea2e455c94f96db371132e76c0086fa59f0b7b5 |