You can inspect the usage of a database, including the total space used, rows read and written with the following command:

turso db inspect <database-name>

Flags

FlagDescription
--queriesShow database query statistics.
--verboseShow detailed information, including the location and instance type.

Examples

Top Queries

You can fetch the most executed, resource-intensive SQL statements that have been run against your database using the Turso CLI:

turso db inspect <database-name> --queries