moj-analytical-services / etl_manager

A python package to create a database on the platform using our moj data warehousing framework
21 stars 9 forks source link

Should have single init for db and table class #37

Closed isichei closed 6 years ago

isichei commented 6 years ago

This is a big rewrite across our dependencies but probably worth it.


db = meta.read_database_json('database.json')
tab = meta.read_table_json('table1.json')

Then the only way to create a database will be those functions or initialising the db or table class like:

from etl_manager.meta import DatabaseMeta

db = DatabaseMeta(**kwargs)
tab = TableMeta(**kwargs)