Skip to content

dave-inc/paddl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.9%
  • Makefile 8.1%