Rustango-CMS Rustango-CMS v0.4
← All posts

One binary, three databases

A CMS is often a small site's first database. It is also, a year later, a large site's most important one. We want the same code to serve both, so Rustango-CMS runs on SQLite, PostgreSQL and MySQL.

Start on SQLite

SQLite needs no server. cargo run and you have a site with an admin, a page tree and media — the getting started guide uses it for exactly that reason. This very documentation site runs on SQLite in production.

Move when you need to

When you need several app servers, point DATABASE_URL at PostgreSQL or MySQL and migrate. Pages, revisions, menus and media records move as ordinary rows; there is no export format to learn.

How we keep it honest

Every database-backed test runs on SQLite, and the dialect-sensitive ones — placeholders, LIMIT, ordering, DDL — also run on PostgreSQL and MySQL. A feature that only works on one engine is a bug, not a limitation.

Rule of thumb: SQLite for a single server and a site that fits in one box. PostgreSQL when you want the most mature tooling. MySQL when it is what your hosting provides.

See Run it in production for connection settings and the checklist before you go live.

← All posts Get started