tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
215 stars 35 forks source link

Improve `db inspect --verbose` output #462

Closed penberg closed 1 year ago

penberg commented 1 year ago

Let's improve db inspect --verbose output to show rows read for replicas too.

Mock output:

$ turso db inspect --verbose endless-odin

LOCATION        TYPE    INSTANCE NAME           ROWS READ       TABLE STORAGE   INDEX STORAGE
arn             primary known-devil-dinosaur    100             8.0 KiB         0 B
fra             replica deciding-switch         50              8.0 KiB         0 B

                        TOTAL                   150             16.0 KiB        0 B

LOCATION arn

 NAME   TYPE   SIZE
 users  table  4 KiB

LOCATION fra

 NAME   TYPE   SIZE
 users  table  4 KiB
penberg commented 1 year ago

Another suggestion was to also include writes delegated, but that needs sqld cooperation: https://github.com/libsql/sqld/issues/457