17 lines
1010 B
Python
17 lines
1010 B
Python
"""B08 도메인 DDL 조립점. 전역 migration runner 연결은 B08 외부 작업이다."""
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_Basis import BASIS_DDL
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_Calculation import CALCULATION_DDL
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_Catalog import CATALOG_DDL
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_CostBasis import COST_BASIS_DDL
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_Quantity import QUANTITY_DDL
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_Reconciliation import RECONCILIATION_DDL
|
|
from B08_wf5_Quantity.B08_wf5_Quantity_Database_UnitCost import UNIT_COST_DDL
|
|
|
|
DDL_STATEMENTS = (BASIS_DDL + CATALOG_DDL + UNIT_COST_DDL + COST_BASIS_DDL +
|
|
QUANTITY_DDL + CALCULATION_DDL + RECONCILIATION_DDL)
|
|
|
|
async def initialize_b08_tables(connection) -> None:
|
|
async with connection.cursor() as cursor:
|
|
for statement in DDL_STATEMENTS:
|
|
await cursor.execute(statement)
|
|
await connection.commit() |