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