paddl 0.3.0

Creator: railscoder56

Last updated:

Add to Cart

Description:

paddl 0.3.0

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.