db
db inspect
You can inspect the usage of a database, including the total space used, rows read and written with the following command:
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
turso db inspect <database-name>
| Flag | Description |
|---|---|
--queries | Show database query statistics. |
--verbose | Show detailed information, including the location and instance type. |
turso db inspect <database-name> --queries
SELECT * FROM Orders WHERE Status = 'Pending';
SELECT COUNT(*), CustomerID FROM Orders GROUP BY CustomerID HAVING COUNT(*) > 5;
SELECT Orders.OrderID, Customers.CustomerName FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID;
UPDATE Products SET Price = Price * 1.10 WHERE Category = 'Electronics';
Was this page helpful?