mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
16 lines
296 B
Python
16 lines
296 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from anyio import run
|
|
|
|
from backend.database.db import create_table
|
|
|
|
|
|
async def init() -> None:
|
|
print('Creating initial data')
|
|
await create_table()
|
|
print('Initial data created')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
run(init) # type: ignore
|