Something went wrong. Try again.
Add graph db capabilities to wheke with ladybug
Something went wrong. Try again.
457 B · 20 lines
Python
at main
123456789101112131415161718192021import typerfrom rich.console import Consolefrom typer import Contextfrom wheke import get_container
from .service import get_social_service
cli = typer.Typer(short_help="Social commands")console = Console()
@cli.command()def create_db(ctx: Context) -> None: container = get_container(ctx) service = get_social_service(container)
console.print("Creating database...")
service.users.create_table() service.posts.create_table()