MCPcopy
hub / github.com/pallets/flask / init_db_command

Function init_db_command

examples/tutorial/flaskr/db.py:42–45  ·  view source on GitHub ↗

Clear existing data and create new tables.

()

Source from the content-addressed store, hash-verified

40
41@click.command("init-db")
42def init_db_command():
43 """Clear existing data and create new tables."""
44 init_db()
45 click.echo("Initialized the database.")
46
47
48sqlite3.register_converter("timestamp", lambda v: datetime.fromisoformat(v.decode()))

Callers

nothing calls this directly

Calls 1

init_dbFunction · 0.85

Tested by

no test coverage detected