douyinWEB/scripts/_inspect_local_pb_tables.py
eric d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00

22 lines
573 B
Python

# -*- coding: utf-8 -*-
import sqlite3
def main() -> None:
conn = sqlite3.connect("pb/pb_data/data.db")
cur = conn.execute("select name from sqlite_master where type='table' order by name")
rows = [r[0] for r in cur.fetchall()]
print("table_count", len(rows))
print("first20", rows[:20])
keys = ["short", "yt_groups", "oauth", "youtube"]
for key in keys:
matches = [t for t in rows if key.lower() in t.lower()]
if matches:
print("match", key, matches[:30])
conn.close()
if __name__ == "__main__":
main()