SQLite is a file, not a server, so connecting is the simplest of all: you point Schemity at the database file. This makes it a natural fit for database design software - both the database and the diagram are files on your disk. SQLite connections work on Schemity Free.

How do I connect to a SQLite file?

Click + above the diagram list, set DB type to SQLite, click Connect to a database, and leave Connect via on Direct connection. (SQLite has no network host, so SSH Tunnel is not offered.)

What do I need to configure for SQLite?

  • Database file - click Click to select .sqlite file and browse to your .sqlite, .db, or .sqlite3 file.

That is the only field. SQLite has no host, port, username, password, schema, or encryption.

What does Schemity import from SQLite?

Schemity reads every table in the file: tables and columns with their SQLite types, primary keys and nullability, foreign keys (where defined) drawn as crow’s foot relationships, and unique indexes.

How do I open a SQLite database read-only?

To inspect a SQLite file without any chance of writing to it, right-click the saved connection and choose Open read-only. Schemity opens the file in read-only mode.

How do I connect to a Cloudflare D1 database?

Set DB type to Cloudflare D1, which is its own type beside SQLite, and click Connect to a database. A D1 database is SQLite run by Cloudflare, so the form offers two sources: Remote database, read over Cloudflare’s API, or Local wrangler file, the copy wrangler keeps for development. Cloudflare D1 is part of Schemity Pro, included in the 2-week Pro trial; on Schemity Free a new D1 diagram cannot be started, and one that already exists still opens. The remote source asks for three things:

  • Account ID - on the Workers & Pages overview in the Cloudflare dashboard, or from wrangler whoami.
  • API token - a token with D1 Read, created under My Profile, API Tokens. It is stored in your operating system’s keychain, never in the diagram file.
  • Database - click Load databases to pick one of the account’s D1 databases by name, or paste its database ID.

Schemity never writes to a D1 database. It reads the schema on open and on every Refresh, and you design on the diagram as on any other: new tables and relations are dashed drafts, and Save keeps them with the layout and shows the planned SQL instead of applying it. Copy that SQL into a wrangler migration, apply it with wrangler d1 migrations apply, and Refresh: the drafts the database now has turn solid where you placed them. Cloudflare’s newer cf CLI (a release candidate as of November 2026) works the same way: cf d1 migrations apply takes the database ID rather than its name and records applied files in the same d1_migrations table, which Schemity leaves off the diagram. When a planned change drops or rebuilds a table, the dialog warns that on D1 this deletes the rows of tables that cascade from it. Cloudflare’s own tables (names starting with _cf_, and wrangler’s d1_migrations) are left off the diagram, and opening or refreshing reads no row counts, because D1 would bill them as rows read. Import SQL reads a wrangler d1 export script into a D1 diagram and leaves d1_migrations out.

The Local wrangler file source reads the .sqlite file under .wrangler/state/v3/d1/miniflare-D1DatabaseObject in your project, never written to and with Cloudflare’s tables left off, like the remote one. To have Schemity apply changes to that file itself, set DB type to SQLite and point it at the file instead. Which of the two sources a diagram should follow is covered in Cloudflare D1 schema diagram: local file, export, or remote database.

How does Schemity handle SQLite column types?

SQLite uses flexible type affinity rather than strict column types. Schemity maps each declared type to one of SQLite’s storage classes (INTEGER, TEXT, REAL, BLOB, NUMERIC) so the diagram stays consistent.

Next

Clean up the layout on The ERD Canvas, or commit the diagram with Version Control in Git.