DatabasesHow to serve Postgres and ClickHouse through one API

15 database engines, one API layer. The database engine is one word in the path.

Postgres for orders, ClickHouse for analytics, in one project, with the same filters, paging and permissions.

the Auto API path

Template

/minimal/api/rest/auto/v1/<org>/<project>/<database-engine>/<database>/<table>

Two databases, one project

GET /minimal/api/rest/auto/v1/acme/people/postgres/acme/employee
GET /minimal/api/rest/auto/v1/acme/people/clickhouse/acme/employee

Two databases, one grammar.

A second database engine usually means a second API layer to write and secure. Here your client code, your agents and your services learn one grammar.

What differs, database by database.

Each database engine is registered under its own name, and Minimal checks the server is what you named it. Database engines on one protocol share its rules: transactions, defaults and refused statements.

DatabaseProtocolPath nameHow Minimal recognises itOf note
PostgresPostgrespostgres or pgThe default for the protocolIts page
TimescaleDBPostgrestimescaledbThe timescaledb extensionIts page
CitusPostgrescitusThe citus extensionHides its citus and columnar schemas
CockroachDBPostgrescockroachdbVersion begins “CockroachDB”Its page
YugabyteDBPostgresyugabytedb“-YB-” in the versionDetection tested on 2026.1 (YSQL)
RisingWavePostgresrisingwave“-RisingWave-” in the versionNo transactions: a multi-row insert is not all or nothing
MySQLMySQLmysql or msThe default for the protocolIts page
MariaDBMySQLmariadb or ma“MariaDB” in the versionIts page
Aurora MySQLMySQLauroramysqlIts aurora_version variableDetection tested on Aurora 3.10
PerconaMySQLpercona“Percona” in the version commentDetection tested on 8.0
VitessMySQLvitess“Vitess” in the versionHides its _vt schema
TiDBMySQLtidb“TiDB” in the versionSystem schemas in upper case, matched exactly
SingleStoreMySQLsinglestoreIts memsql_version variableHides cluster and memsql
StarRocksMySQLstarrocksIts run_mode variableHides _statistics_
ClickHouseClickHouseclickhouse or chIts own protocolIts page

Database names link to each vendor’s own site. Recognition rules and test versions are from Minimal’s detection code and its tests.

Change database engines without rewriting your routes.

Auto API

One path change.

Change your app’s base path once. How many routes you call does not matter.

Custom API

Two calls each.

Read the definition, swap its database block, save. A script or an agent can run them side by side.

On top: SQL in one database engine’s dialect needs a review on the new one, and moving the data takes as long as the data is large.

One project, every database you run.

Free licence: 50,000 requests a month, for any use, commercial included. Sign in with Google or GitHub, download your licence file. No card.