This package seeks to construct Tree x Graph structure from queries to information_schema objects in a variable Database implementation. With such a structure, one can materialize queries to the imaged database through graph traversals and populate templated files of any kind that depend on the database structure. An example of the latter might be dbt or looker configuration files. Additionally, I look to serialize and store these structures so that one can explore a history of a given database and alert the user of changes and carry out templating actions.
Potential usage of dbm from terminal.
dbm init --config config.file.yml
dbm inspect --config config.file.yml
dbm act --config config.file.yml --action sqlalchemy --target path/to/file/output.py
Database : src/database
Implementation specific configuration for proper execution of dbm. To contribute an implementation, navigate to the above link.
Context : src/context
Object containing Connection, and executing Database Image. Actions act on a context.
Connect : src/connect
Connection to provided database implementation.
Structures : src/struct
Tree and Graph data structures upon which your database is imaged.
Objects : src/objects
Nodes generated provided a database implementation.