1. DBeard
  2. Databases
  3. SQLite

Local SQLite file browserstable

Open a SQLite file and follow the data

Pick a .db or .sqlite file to see its tables and views. Follow a foreign key to the matching record, or open a query tab to find out how SQLite reads it.

Available for macOS and x86-64 Linux. Windows is planned.

SQLite · check an order lookup
EXPLAIN QUERY PLAN
SELECT * FROM orders
WHERE customer_id = 42;
SQLite orders grid in DBeard showing order IDs, customer references, totals in cents and payment status.Open full-size screenshot
The orders table in the three-million-row SQLite benchmark file. The first page shows order totals and payment states. Count all is available in the status bar.
Connection
Local file
Query plans
EXPLAIN QUERY PLAN
Server setup
None

The lay of the land

How to connect to SQLite

Use this address format to open the connection. The object tree shows what you can browse.

/path/to/shop.sqlite
  • Choose Open a database, then Choose a File and select the main database file.
  • Set the connection to Read only when inspecting a file that should stay untouched.
  1. SQLite file
  2. Tables and views
  3. Columns

Made for SQLite

What you get on this engine

  1. Follow a foreign key

    Right-click a customer ID in the orders grid and open its referenced row in another tab. The original orders tab stays open.

  2. Check an index lookup

    Use Explain to distinguish a table scan from a search using an index. Read the actual plan for the file you have open.

  3. Review a row edit

    Change a cell and inspect the generated SQL before applying it. A check on the original value helps catch a conflicting change.

Follow an order to its customer in a SQLite file.
Follow an order to its customer in a SQLite file.

Support

SQLite features, one by one

“Coming soon” means it is on the roadmap. “Not planned” means we have decided against it.

SQLite browser and editor
FeatureDBeard
TablesBrowse in pages and filter with SQL.Yes
Foreign-key navigationYes
Query plans and staged row editsYes

The longer read

A SQLite client worth switching to

Inspect an application’s SQLite database

Choose the main database file in the application’s data directory. A file ending in -wal or -shm is a companion file. If the application is still writing, keep those files together and use a read-only connection to inspect the database. Open Structure on a table to find its columns and indexes before writing a query.

Try the three-million-row orders dataset

The SQLite benchmark fixture creates an orders table with an index on customer_id. Open the generated file in DBeard and try the example above. Then inspect a query that sorts on the unindexed total_cents column. The plans explain why returning a short list of orders can still require reading many rows. The benchmark method gives the commands and expected results.

Questions

SQLite and DBeard, answered

Can I open a .db file without installing a database server?

Yes, if it is a SQLite database. DBeard opens the file locally using its bundled SQLite engine. Other applications can also use the .db extension for different formats.

How do I see whether SQLite uses my index?

Select the query in the SQL editor and choose Explain. For an indexed lookup, look for SEARCH and the index name in the plan. SCAN indicates SQLite walks a table or index.

Connect to SQLite with DBeard.

Free for one connection at a time, with every feature. No account, and your data stays on your machine.