12345678910111213141516171819202122232425262728 |
- import config
- import database
- import typer
- app = typer.Typer()
- cfg = config.Config()
- @app.command()
- def create(config_file: str):
- config_file = cfg.system_dir + f"\\SQL\\config\\{config_file}.json"
- database.create(config_file)
- @app.command()
- def run():
- batch_dir = cfg.system_dir + "\\SQL\\batch"
- database.run(batch_dir)
- @app.command()
- def schema():
- database.schema()
- if __name__ == "__main__":
- app()
|