17. Utilities
SQL Explorer
Inspect your current file with read-only SQL queries, browse the table and schema reference, and understand query and result limits.
SQL Explorer lets you ask custom questions about the database in your current Common Cents file. Its read-only queries run on an isolated snapshot, not on your live file, so running a query does not change your records or budget.
Use it when you are comfortable with SQL and the normal transaction filters or reports do not answer your question. For everyday record changes, use the app’s normal forms instead.
Open SQL Explorer #
- Open a file and wait for it to finish loading.
- Enable Utilities in Settings → Features → Pages if it is not already on. See Features.
- Open Utilities from the app navigation to find SQL Explorer.
- Check Active file before running a query.
Run a read-only query #
Enter one SELECT query, or a WITH query that reads data, in SQL query. Choose Run Read-only SQL, or press Command + Enter on macOS or Control + Enter on Windows and Linux while the query field is focused.
The initial query shows a small sample of transactions:
SELECT * FROM transactions LIMIT 10; To count the rows in that table:
SELECT COUNT(*) AS transaction_count
FROM transactions; Use the schema reference to check table and column names before writing more specific queries. Prefer named columns, filters, and a small LIMIT over selecting every column from a large table. Add ORDER BY when the order of your sample matters.
Only one statement is accepted per run. PRAGMA commands, multi-statement scripts, and statements that change data or schema are not allowed.
Browse the table and schema reference #
Expand Table and schema reference to inspect the file’s structure without writing a query.
- Tables and views chooses which objects to inspect;
transactionsis selected initially. - Select all includes every available table and view; Clear removes the selection.
- Search schema filters columns within the selected objects by table, column, type, or reference information.
- Column headers sort the reference. Schema order restores table-name order followed by each table’s column order.
- Refresh Schema reloads the reference for the active file.
The reference includes column types, whether a column allows null values, primary-key information, defaults, and references. Nullable and Primary Key use Y and N; — means unknown for views. Under Default, — means no default, while NULL is an explicit SQL default.
If the reference reports that it is truncated, some objects or column details may be missing. Changing the reference selection or search does not change your query or the file’s data.
Read results and understand limits #
Results appear below the query with the number of rows displayed. Wide or long tables scroll within the results area. SQL null values display as NULL.
Each run has limits to keep inspection responsive:
- up to 500 rows and 100 columns
- up to 4,000 characters per cell and 1 million characters of output overall
- a maximum query length of 50,000 characters
- a five-second read-only query timeout
Output truncated means the displayed result is incomplete. Narrow the query with filters, fewer columns, or a smaller result set rather than treating the displayed row count as the total number of matching records. Use a count query when you need a total.
The result is a snapshot, not a live view. Run the query again after changing records elsewhere in the app to see updated data. Switching or closing the file clears the query session, results, and schema reference; reopening starts with the sample query.
If a query does not run #
- Utilities is unavailable: enable it for the current file in Settings → Features → Pages.
- The file is not ready: wait for loading to finish before retrying.
- A table or column is not found: check its spelling against Table and schema reference.
- The query is rejected: use one read-only
SELECTorWITHquery, with noPRAGMAcommands or additional statements. - The query times out: add filters, reduce joins or calculations, and select only the columns you need. A smaller
LIMITcan help with large result sets. - The active file changes during a query: the old request is cancelled. Check Active file, then run a query for the file you now have open.
For a simpler way to find transactions, try Quick Tools Search or the filters on Transactions.