Remote measurements for your app
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.1.tar.gz
(4.3 kB
view details)
File details
Details for the file paddl-0.0.1.tar.gz
.
File metadata
- Download URL: paddl-0.0.1.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 | 8bc6234e586f7cb94457a153da8b2f9c589de71c429307fead280972a278c013 |
|
MD5 | 0b476d4f469f739ef8537485a7a53cb9 |
|
BLAKE2b-256 | 4695244f53d354929b8d603b1d05adecd8b6c7889b39fdcdc3640e8b2eb91b0a |