Choosing a database
This page is for administrators, database administrators and developers who decide which database a new Exponential site runs on, or whether a database they already have can be reached. Exponential 6.0.14 ran on five databases; 6.0.15 reaches more than twenty, at different levels: some carry a whole site, some only hold data tables and feed imports, some are written from their vendors' documentation and have never run here. This page puts all of them side by side, says honestly what was tested and what was not, and then answers the question by use case.
Every statement here comes from the code of the 6.0.15 line and the pages of the drivers themselves. The details,
settings and limits of each database are on its own page, linked in the tables.
Database support is the support statement with versions and settings; the operator's chapter
is chapter 9 of the installation guide. The support level of every database in one table
(data tables, full site, DFS, multi-server cluster, setup wizard, exp:install and kickstarter, xne upgrade tested),
the same table network.se7enx.com and se7enx.com show, is
Support levels at a glance.
Contents
- The levels
- The matrix: status and use
- The matrix: requirements and tests
- Backups and upgrade captions
- Measured timings
- Which database for which use
- Planned
- Related pages
The levels
| Level | Meaning |
|---|---|
| Site database | the installers create the kernel schema and a site package in it, and the site runs from it |
| Site database, not measured | the driver and its profile exist and pass their tests without a server, but no site was ever installed on the database here (no container image, or a managed service nobody signed up for) |
| Data tables and import | a data table connection can make, read and write tables on it, and data can be imported from it; it does not carry a site |
| Import only | data is copied out of it into a database that carries the site |
The official order of the supported databases stays as Database support gives it: 1. SQLite 3 (the default) · 2. PostgreSQL · 3. MongoDB · 4. MariaDB · 5. Oracle · 6. MySQL · 7. Microsoft SQL Server and Azure SQL. The other databases of 6.0.15 are listed after them, by family.
The matrix: status and use
"6.0.14" says whether the release before this one had the database at all. "Installers" names the setup wizard in
the browser, the kickstarter (kickstart.ini) and exp:install
(console install); the value is the --db= name. "DFS cluster" means several web
servers on one database, with the file metadata in it (exp:cluster:enable,
Clustering in Exponential 6.0).
| Database | 6.0.14 | 6.0.15 | Site database | DFS cluster | Read replicas (UseSlaveServer) | Installers |
|---|---|---|---|---|---|---|
| SQLite 3 | yes | yes, the default | yes | one machine only (a one-node cluster); several nodes with LiteFS, one writer | no | wizard, kickstarter, exp:install (sqlite, the default) |
| PostgreSQL 13 to 19 | yes | yes | yes | yes, in the kernel | yes | wizard, kickstarter, pgsql |
| MongoDB 6.0 and later | yes | yes | yes, through an adapter | yes, in the kernel | MongoDB's own replica set | wizard, kickstarter, mongodb |
| MariaDB | yes | yes | yes | yes (MySQLi backend) | yes | wizard ("MariaDB / MySQL Improved"), kickstarter, mariadb |
Oracle 19c and later (ezoracle) | yes | yes | yes | yes, in the kernel | yes | wizard, kickstarter, oracle |
| MySQL | yes | yes | yes | yes (MySQLi backend) | yes | wizard ("MariaDB / MySQL Improved"), kickstarter, mysql |
| SQL Server 2017 to 2025, Azure SQL | no | new | yes | yes, in the kernel | yes (Always On, ApplicationIntent=ReadOnly) | wizard (with sqlsrv or pdo_sqlsrv), kickstarter, sqlserver |
| TiDB | no | new | yes | yes (MySQLi backend, measured) | the MySQL mechanism, not tested | wizard, kickstarter, tidb |
| Vitess, PlanetScale | no | new | yes, in an unsharded keyspace | yes (measured on Vitess) | the MySQL mechanism, not tested | wizard, kickstarter, vitess |
| SingleStore | no | new | yes | yes (measured) | the MySQL mechanism, not tested | wizard, kickstarter, singlestore |
| MariaDB Xpand | no | new, untested | not measured | not measured | not measured | wizard, kickstarter, xpand |
| Amazon Aurora MySQL | no | new, untested | not measured | not measured | the reader endpoint, not measured | wizard, kickstarter, aurora |
| CockroachDB 23.2 and later | no | new | yes | yes (PostgreSQL backend, measured) | not tested | wizard, kickstarter, cockroachdb |
| YugabyteDB 2.20 and later | no | new | yes | yes (PostgreSQL backend, measured; no lock timeout) | not tested | wizard, kickstarter, yugabytedb |
| Neon | no | new profile, untested | as PostgreSQL, not measured | PostgreSQL backend, untested | a read replica compute, not measured | wizard, kickstarter, neon |
| Supabase | no | new profile, untested | as PostgreSQL, not measured | PostgreSQL backend, untested | not measured | wizard, kickstarter, supabase |
| Amazon Aurora PostgreSQL | no | new profile, untested | as PostgreSQL, not measured | PostgreSQL backend, untested | the reader endpoint, not measured | wizard, kickstarter, aurorapostgresql |
| Google Cloud Spanner, PostgreSQL dialect | no | new | no: data tables and import | no | no | none |
| Firebird 4.0 and 5.0 | no | new | yes | not yet | no | wizard (with pdo_firebird), kickstarter, firebird |
| DuckDB 1.5 and 2.0 | no | new | yes, one writer at a time | no | no | wizard (with ffi and ffi.enable=true), kickstarter, duckdb |
| libSQL (sqld), Turso | no | new; Turso untested | yes (measured on sqld 0.24) | no backend; several web servers share the database, the files need a shared directory | no (Turso's replicas answer at the same URL) | wizard (with curl; a server or the embedded file mode), kickstarter, libsql, turso |
| IBM Db2 11.5 and 12.1 | no | new | yes | not yet | no | wizard (with pdo_ibm or ibm_db2), kickstarter, db2 |
| IBM Informix 14.10 and 15 | no | new | yes (measured on 15) | no | no | wizard (with ibm_db2 or pdo_ibm), kickstarter, informix |
| MonetDB Dec2023 and later | no | new | yes, one writer at a time | no | no | wizard (listed last; no PHP extension needed), kickstarter, monetdb |
| ClickHouse 24.8 and later | no | new | no: data tables and import (why) | no | no | none |
| SAP HANA 2.0 SPS 05 and later | no | new | yes (measured on HANA express 2.00.088) | no | no | wizard (with odbc or pdo_odbc and SAP's HANA ODBC driver registered), kickstarter, hana |
| SAP ASE 15.7 and 16.0 | no | new | untested: written, no server to test | no | no | kickstarter, ase (not offered by the wizard) |
| Any database through ODBC | no | new | yes on SQL Server, PostgreSQL, MariaDB/MySQL and Db2 (a site over ODBC); data tables and import on any | yes: SQL Server's and PostgreSQL's over PDO_ODBC, MariaDB's through mysqli | no | wizard, kickstarter, odbc with --db-dialect |
MS Access (.accdb, .mdb) | no | new | no: import, and data tables on Windows | no | no | none (exp:access:import) |
| Apache Cassandra 4.0 to 5.0, ScyllaDB 2025.1 | no | new | no: data tables and import (why) | no | no | none (exp:cassandra:import) |
| Couchbase 7.2 and later | no | new | no (measured): data tables and import | no | no | none (exp:couchbase:import) |
| Apache CouchDB 3.3 and 3.4 | no | new | no (measured): data tables and import | no | no | none (exp:couchdb:import) |
Notes on the table:
- The setup wizard lists a database when the PHP running it has the database's extension:
sqlite3,mysqli(with TiDB, Vitess / PlanetScale, SingleStore, MariaDB Xpand and Aurora MySQL listed after MySQL),pgsql(with CockroachDB, YugabyteDB, Neon, Supabase and Aurora PostgreSQL listed after PostgreSQL),mongodb,oci8,sqlsrvorpdo_sqlsrv(SQL Server),pdo_firebird,pdo_ibmoribm_db2(Db2, Informix),ffi(DuckDB, only whereffi.enable=trueand withlibduckdb) andcurl(libSQL, with a server or the embedded file mode, and Turso after it),pdo_odbcorodbc(SQL Server, PostgreSQL, MariaDB / MySQL and Db2 over ODBC, and SAP HANA when SAP's HANA ODBC driver is registered). MonetDB needs no extension and is listed last whenever PHP may open a socket. SAP ASE is never offered. The order since 27 November 2026: MariaDB / MySQL Improved, PostgreSQL, SQLite (preselected, so on top), MongoDB, Oracle; then SQL Server, SQL Server over ODBC, Firebird and DuckDB; then the protocol families; then the databases added later; MonetDB last. Every database of the table that carries a site can also be installed with the kickstarter orexp:install(setup wizard). - DFS on the MySQL protocol databases: the backend opens its own
mysqliconnection without TLS. On PlanetScale, TiDB Cloud and SingleStore Helios, which require TLS, keep the DFS metadata in another database. - DFS on the PostgreSQL protocol databases:
exp:cluster:enablegives CockroachDB, YugabyteDB, Neon, Supabase and Aurora PostgreSQL the PostgreSQL backend, with its tables in the site's own database. It passed the DFS checks live on CockroachDB 25.2 and YugabyteDB 2.25; on Neon, Supabase and Aurora it has not been run against the service.
The matrix: requirements and tests
"Data table engine" is the Engine= of a named connection in datatable.ini
(Data tables). "Import source" says how data comes out of the database into a
site: the kernel's own commands, a data table connection, or the SQLI Import extension's sources
(SQLI Import). "xne upgrade" is the upgrade tool's own integration test, which installs a
real 6.0.14 site, upgrades it to the current code and rolls it back.
| Database | PHP extension | Data table engine | Import source | Operating systems | Tested in CI | xne upgrade tested |
|---|---|---|---|---|---|---|
| SQLite 3 | sqlite3 | sqlite | SQLI Import's SQL source (pdo_sqlite) | Linux, Windows (CI), macOS | driver tests, PHP 8.1 to 8.5; a whole site on Windows | yes: 6.0.14 to main and back, on Linux and in the Windows job |
| PostgreSQL | pgsql | postgresql | SQL source (pdo_pgsql), named connection | Linux, Windows | database tests on 13, 15, 18, 19; DFS on 13 to 19 | yes: 6.0.14 to main and back, and a failure rolled back |
| MongoDB | mongodb and the library mongodb/mongodb; PHP 8.2 and later | mongodb | SQLI Import's MongoDB source | Linux, Windows | adapter tests; MongoDB 8.0 in the DFS job | yes, one proof run: a full upgrade of a kickstarted site and an exact xne rollback (Upgrading with xne) |
| MariaDB | mysqli | mysql | SQL source (pdo_mysql), named connection | Linux, Windows | through the MySQL jobs (the same driver) | yes: 6.0.14 to main and back, and a failure rolled back (xne's integration suite runs on MariaDB) |
| Oracle | oci8 and the ezoracle extension | oracle | SQL source (oci8), named connection | Linux, Windows | the DFS backend on Oracle Free 23 | yes, one proof run: a full upgrade of a kickstarted site through ezoracle and an exact xne rollback |
| MySQL | mysqli | mysql | SQL source (pdo_mysql), named connection | Linux, Windows | database tests on MySQL 8.0 | the same driver and path as MariaDB, where xne's integration suite runs |
| SQL Server, Azure SQL | sqlsrv, pdo_sqlsrv, pdo_odbc or pdo_dblib | sqlserver | SQL source (pdo_sqlsrv, pdo_dblib or PDO_ODBC), named connection | Linux, Windows (LocalDB in CI) | 2017, 2019, 2022, 2025 on three PHP layers, PHP 8.1 to 8.5; LocalDB on Windows | not yet (new in 6.0.15) |
| TiDB, Vitess, SingleStore | mysqli | tidb, vitess, singlestore (or mysql with the option profile) | named connection of engine mysql | Linux | live tests in containers (job mysqlwire) | not yet |
| Xpand, Aurora MySQL | mysqli | xpand, aurora | named connection of engine mysql | Linux | tests without a server only | not yet |
| CockroachDB, YugabyteDB | pgsql | cockroachdb, yugabytedb | a data table connection; SQL source through a named connection | Linux | live tests in containers (job "PostgreSQL wire protocol") | not yet |
| Neon, Supabase, Aurora PostgreSQL | pgsql | neon, supabase, aurorapostgresql | a data table connection; SQL source through a named connection; Supabase also SQLI Import's Supabase (REST) source | Linux | tests without a server only | not yet |
| Spanner (PGAdapter) | pgsql | spanner | a data table connection (table_to_content); SQL source through a named connection | Linux | live tests against the emulator behind PGAdapter | not applicable |
| Firebird | pdo_firebird of PHP 8.4 or later and Firebird's client library | firebird | a data table connection; SQL source through a named connection | Linux | live tests on Firebird 4 and 5, PHP 8.4 and 8.5 (job firebird) | not yet |
| DuckDB | ffi (with ffi.enable=true for the web) and libduckdb | duckdb | a data table connection; SQL source through a named connection; SQLI Import's DuckDB source (Parquet, CSV, JSON and DuckDB files) | Linux (libduckdb.so); Windows and macOS not tested | live tests on DuckDB 1.5.6 and 2.0.1, and a whole site installed (job duckdb) | not yet; no built-in caption (below) |
| IBM Db2, IBM Informix | pdo_ibm or ibm_db2 (PECL) with IBM's Data Server Driver; Informix needs ibm_db2 for a site | db2, informix | a data table connection; SQL source through a named connection | Linux | live tests on Db2 12.1 and 11.5 and Informix 15 and 14.10 (job db2) | not yet |
| SAP HANA | odbc (or pdo_odbc, with odbc for the schema's triggers) and SAP's HANA ODBC driver | hana | a data table connection | Linux | live tests on HANA express 2.00.088, both ODBC layers (job hana) | not yet |
| SAP ASE | pdo_dblib (FreeTDS) or pdo_odbc | ase | a data table connection (untested) | none tested | DB-less tests only (job hana) | not yet |
| ODBC | pdo_odbc or odbc, and the database's ODBC driver | odbc | a data table connection; SQL source through a named connection; exp:access:import into it | Linux, Windows | live tests on SQL Server, PostgreSQL, MariaDB and SQLite, both layers, whole sites installed (job odbc); LocalDB on Windows | the upgrade stages over ODBC measured on MariaDB (exp:upgrade:database); xne as PostgreSQL or MySQL |
| MS Access | Windows: odbc and pdo_odbc with the Access Database Engine (x64); Linux: the MDBTools programs (import only) | msaccess (Windows) | exp:access:import; SQL source through a named connection (Windows) | Windows (driver and import), Linux and macOS (import with MDBTools) | the import on Linux; the driver and the import on windows-2022 and windows-2025 (job msaccess-windows) | not applicable |
| libSQL (sqld), Turso | curl (or allow_url_fopen); sqlite3 not needed | libsql, turso | a data table connection | Linux (sqld in a container); the PHP side on any system with curl | tests without a server, live tests on sqld 0.24.33 and a whole site installed (job libsql); Turso not tested | not yet; no built-in caption (below) |
| MonetDB | none: MAPI in plain PHP | monetdb | a data table connection (table_to_content) | Linux | live tests on Dec2023-SP4 and Dec2025-SP5, and a whole site installed (job columnar) | not yet; no built-in caption (below) |
| ClickHouse | none: HTTP through curl or PHP's HTTP stream | clickhouse | a data table connection; SQLI Import's ClickHouse source | Linux | live tests on 24.8 and 25.8 (job columnar) | not applicable |
| Cassandra, ScyllaDB | PHP 8.1 and the library mroosz/php-cassandra (no extension) | cassandra, scylladb | a data table connection; exp:cassandra:import of a keyspace | Linux | live tests on Cassandra 5.0 and ScyllaDB 2025.1, PHP 8.1 and 8.5 (job cassandra) | not applicable |
| Couchbase | curl (the Query service's REST API; no SDK) | couchbase | exp:couchbase:import; a data table connection | Linux | live tests on Couchbase Community 7.6.2 and 7.2.4 (job couch) | not applicable |
| Apache CouchDB | curl and sqlite3 | couchdb | exp:couchdb:import; a data table connection | Linux | live tests on CouchDB 3.4.3 and 3.3.3 (job couch) | not applicable |
The upgrade tool's tests are described in its own documentation; an upgrade from 6.0.14 exists only for the databases 6.0.14 had. A site installed on one of the new databases is first upgraded by the release after 6.0.15, and that path has not been tested yet on any of them.
Backups and upgrade captions
Before an upgrade or a migration run, the upgrade command makes a safety copy of the database (a "caption",
exp:upgrade:backup). It has a built-in dump for four engines only; on every other database make your own backup with
the database's tool and run the upgrade with --no-backup.
| Database | Built-in caption | Your own backup |
|---|---|---|
| SQLite 3 | VACUUM INTO (a copy of the file when the library is too old) | sqlite3 ... ".backup ..." |
| PostgreSQL | pg_dump of the server's version | pg_dump -Fc, pg_restore |
| MongoDB | mongodump | mongodump, mongorestore |
| MariaDB, MySQL | mysqldump --single-transaction | mariadb-dump or mysqldump |
| TiDB, Vitess, SingleStore, Xpand, Aurora MySQL | mysqldump is run (the driver reports mysql); not measured on these databases | the vendor's own backup |
| CockroachDB, YugabyteDB, Neon, Supabase, Aurora PostgreSQL | pg_dump is run (the driver reports postgresql) | YugabyteDB: ysql_dump (a dump by PostgreSQL 17's pg_dump sets transaction_timeout, which YugabyteDB 2.25 refused on restore); CockroachDB, the cloud services: their own backup |
| Oracle | none: run with --no-backup | expdp / impdp, or ext:ezoracle:datapump |
| SQL Server, Azure SQL | none | BACKUP DATABASE, or the service's backups |
| Firebird | none | gbak or nbackup |
| IBM Db2, IBM Informix | none | the database's own backup |
| SAP HANA, SAP ASE | none | BACKUP DATA (HANA), dump database (ASE) |
| DuckDB | none ("no built-in dump for duckdb") | copy the file while no process writes, or EXPORT DATABASE from the duckdb program |
| Cassandra, ScyllaDB (data tables only) | none | nodetool snapshot, or the vendor's backup tool |
| libSQL (sqld), Turso | none ("no built-in dump for a libSQL server") | a copy of sqld's data directory while it is stopped, Turso's point-in-time restore |
| MonetDB | none | msqldump, or MonetDB's hot snapshot (monetdb snapshot) |
The full procedure per engine: Backups per engine.
Measured timings
What the driver pages report, each on its own machine and day. Most of these hosts were busy with other work while they measured, so the numbers say how long something took there, not how two databases compare.
| What | Where | Time |
|---|---|---|
A site package installed (sevenx_multisite, 16 steps) | SQLite, kickstarter | 54 to 128 s |
| SingleStore 10.10 | 279 s | |
| Vitess 25 (transaction timeout raised to 600 s) | 526 s | |
| MongoDB 8.0, kickstarter | 588 to 916 s | |
| TiDB 8.5.1 | 764 s | |
| Oracle 26ai Free, kickstarter | 901 to 1030 s | |
| Firebird 4.0 and 5.0 | 21 and 22 minutes | |
| DuckDB 2.0.1 | 31 minutes | |
| libSQL, sqld 0.24.33 over HTTP | 22 minutes | |
| MonetDB Dec2025-SP5 | 29 minutes | |
| YugabyteDB 2.25 | 42 minutes (slow DDL) | |
| CockroachDB 25.2 | 47 minutes (slow DDL) | |
| Informix 15 | 2,016 s | |
| SAP HANA express 2.00.088 (a test server under load 20 to 40) | 109 minutes (the search index, word by word) | |
| One statement | Firebird, in its own transaction / inside a transaction | about 20 ms / about 4 ms |
| DuckDB, a row read by its key / inserted with a commit / inside a transaction | 2.7 ms / 7.4 ms / 2.7 ms | |
| libSQL (sqld over HTTP), a row read by its key / written with a commit / inside a transaction | 2.1 ms / 76 to 101 ms / 2.3 to 6.7 ms | |
| MonetDB, a row read by its key / inserted with the write lock and a commit / inside a transaction | 3.7 to 4.2 ms / 22 ms / 3.9 ms | |
| ClickHouse, a row read by its key / one row inserted / a million rows inserted | 30 to 48 ms / 9 to 18 ms / 214 ms | |
SAP HANA, SELECT 1 / a single-row insert into a column table with its trigger | about 3 ms / 6 to 14 ms | |
| A front page | DuckDB, view cache filled / empty | 2.3 to 3.5 s / 17 s |
| MonetDB, view cache filled / empty | 0.05 to 0.09 s / 2.6 s | |
An Access file imported (4,103 rows, exp:access:import) | into SQLite, MariaDB, PostgreSQL, SQL Server over ODBC | 0.4 s, 2.5 s, 2.6 s, 31 s |
| One statement | Cassandra 5.0 / ScyllaDB 2025.1, a row read by its key / inserted with a new id | 2.2 ms / 0.6 ms; 17.6 ms / 17.8 ms |
A keyspace table imported (2,000 rows, exp:cassandra:import) | from Cassandra / ScyllaDB into SQLite | 0.20 s / 0.51 s |
SQLite and MySQL answer a lookup by key in tens of microseconds; DuckDB, Firebird and libSQL (a round trip over HTTP) in milliseconds, which is why a page with hundreds of statements needs the view cache on those.
Which database for which use
One server
- SQLite 3, the default: no database server at all, a whole site in one file, a full production database for a site served from one machine, or from several with LiteFS (one primary writes, read replicas). Writers queue.
- PostgreSQL when you want a database server from the start, or expect a second web server later.
- MariaDB or MySQL when the host offers them and nothing else. For MariaDB or MySQL, choose MariaDB / MySQL Improved in the setup wizard's database list.
- IBM Db2 or Informix when that is what your organization runs: a whole site on one web server (no DFS backend).
- Firebird 4 or 5 when Firebird is what your organization runs; it needs PHP 8.4 or later and has no cluster backend yet, so it stays on one web server.
- libSQL (
sqld) when you like SQLite's SQL and simplicity but want the database on a server of its own: a container next to the site, SQLite's schema, no PHP extension beyond curl. Writes outside a transaction cost the server's commit (tens of milliseconds), so expect installs and imports to be slower than on a SQLite file.
Several web servers (a cluster)
The database must hold the DFS file metadata for all web servers: PostgreSQL (recommended), MariaDB/MySQL, Oracle, SQL Server/Azure SQL or MongoDB, each with its backend in the kernel. TiDB, Vitess and SingleStore ran a one-node DFS cluster through the MySQL backend; for a managed service that requires TLS keep the DFS metadata elsewhere. CockroachDB and YugabyteDB passed the DFS checks through the PostgreSQL backend; Neon, Supabase and Aurora PostgreSQL use the same backend, untested. Not for the DFS metadata of a cluster: SQLite (its backend is for one machine; a SQLite site itself runs on several nodes with LiteFS, the DFS metadata then in one of the databases above), DuckDB (one writer, a local file lock), Firebird (no backend yet), Spanner (holds no site). A libSQL server can be shared by several web servers for the site's tables, but holds no DFS metadata: keep the files in a shared directory, or the DFS metadata in one of the databases above.
A managed cloud database
| You have | Use | Status |
|---|---|---|
| Azure SQL Database or Managed Instance | sqlserver | tested against SQL Server; Azure's transient errors are retried |
| Amazon RDS for PostgreSQL, Google Cloud SQL, any PostgreSQL service | pgsql | as PostgreSQL |
| Amazon Aurora PostgreSQL | aurorapostgresql | profile, untested |
| Amazon Aurora MySQL | aurora | profile, untested |
| Neon, Supabase | neon, supabase | profiles, untested; install through a direct connection or a session pooler |
| PlanetScale | vitess (planetscale) | measured on Vitess; transactions longer than 20 s are killed, so install elsewhere and import |
| TiDB Cloud, SingleStore Helios | tidb, singlestore | measured on the self-hosted servers; TLS with --db-ssl=verify |
| CockroachDB, YugabyteDB (self-hosted or cloud) | cockroachdb, yugabytedb | measured on one node each; slow DDL; DFS through the PostgreSQL backend |
| Google Cloud Spanner | spanner as a data table connection | not a site database |
| DataStax Astra DB, ScyllaDB Cloud, Amazon Keyspaces | cassandra or scylladb as a data table connection (TLS) | not a site database; the services themselves not tried |
| Turso (libSQL in the cloud) | turso | profile of the libSQL driver, untested (no account used); the same protocol as the tested sqld, over HTTPS with a token |
Embedded, demo and build sites
- SQLite 3 is the answer for nearly every demo: the installers default to it and it installs in about a minute.
- DuckDB keeps a site in one file too, but one process writes at a time and every statement costs milliseconds:
for a site with one editor, a site that is built once and then served (
AccessMode=read_only), or a demo of the driver itself. - A libSQL database file (what
sqldwrites) is an SQLite file: the SQLite driver opens a copy of it. libSQL's embedded replicas need the libSQL client library, which PHP cannot load; the driver does not offer them. - MonetDB holds a whole site on a server, with one writer at a time and milliseconds per statement: for a site that is mostly read and whose data is also worked with in columnar queries.
Analytics, reporting and imports
- A DuckDB file as a data table connection (
Engine=duckdb) keeps analytics next to a site on any database; SQLI Import's DuckDB source reads Parquet, CSV and JSON files through DuckDB. - ClickHouse (
Engine=clickhouse) holds analytics tables of billions of rows, written in chunks and read with aggregates; it is no site database (no enforced keys, no transactions). SQLI Import's ClickHouse source reads aSELECTinto content. - Spanner (through PGAdapter), Firebird, Cassandra and ScyllaDB and any ODBC database reach a site as data table connections: tables are made, read and written there, and rows go into content through the data table tools.
- SQLI Import's SQL source reads a single
SELECTfrom MySQL or MariaDB, PostgreSQL, SQLite, Oracle or SQL Server directly, and through a named connection from every relational engine of the data table connections (also the PostgreSQL and MySQL protocol databases, Spanner, Firebird, DuckDB, Db2, Informix, ODBC and MS Access), opened by the kernel's driver and checked in that engine's dialect. - Couchbase and CouchDB, the document stores, are data table connections (a scope of a bucket; a CouchDB database)
and import sources:
exp:couchbase:importandexp:couchdb:importcopy their documents into tables, the fields of a sample as columns and the document's key asdoc_id. Neither carries a site: Couchbase answers the kernel's SQL through SQL++, but too slowly, and CouchDB has no SQL at all (Couchbase, CouchDB).
Windows
SQLite (the Windows CI installs a whole site on it) and SQL Server are the tested choices on Windows: the SQL
Server driver runs over sqlsrv or pdo_sqlsrv, LocalDB and Express work for development. PostgreSQL, MySQL,
MariaDB, Oracle and MongoDB have Windows builds of their PHP extensions. The ODBC driver is tested on Windows
against LocalDB, and MS Access files are read and written there through Microsoft's Access Database Engine.
Firebird and DuckDB have not been tried on Windows. See Exponential on Windows.
Moving off MS Access or another old database
- From MS Access:
exp:access:importcopies the tables of an.accdbor.mdbfile into the site's database or a data table connection, with MDBTools on Linux (no Access needed) or the Access ODBC driver on Windows. Do not run a site on Access; the MS Access page says why. - From a database the site cannot run on (an ERP on Firebird, a CRM behind an ODBC driver, an intranet on SQL Server): make it a data table connection and read it in place, or import it.
- Moving a whole site to another engine: Moving off an old database and Moving a site to another engine.
Planned
Every driver in the matrices above is on the main branch and ships with 6.0.15; none is in development any more. Planned are two kinds of work, each with what it would take and an estimated size in Planned databases:
- Measuring databases that speak a protocol Exponential already has, with no new code: AlloyDB, TimescaleDB, Citus and Azure Cosmos DB for PostgreSQL (a full site expected); QuestDB, Materialize, RisingWave and CrateDB; Percona Server and XtraDB Cluster, Dolt and OceanBase; StarRocks, Apache Doris and Manticore Search; SQLCipher, LiteFS, rqlite and Cloudflare D1; Amazon DocumentDB, Azure Cosmos DB for MongoDB and FerretDB; and through ODBC, for data tables and imports, Snowflake, Google BigQuery, Databricks, Teradata, Progress OpenEdge, FileMaker Server, Exasol and Ingres.
- New driver work, for data tables and imports: Amazon DynamoDB, Google Firestore and Datastore, Azure Cosmos DB (NoSQL API); Neo4j, ArangoDB, Amazon Neptune and SurrealDB; Redis and Valkey, Riak, RethinkDB and RavenDB; InterBase, older Sybase, Apache Derby, H2 and HSQLDB.
Nothing on this list is a promise of a release, and a database enters the matrices above only once it has run here.
Related pages
- Database support: versions, extensions, settings and the support statement.
- Chapter 9, Databases and chapter 2, Requirements.
- The drivers: SQL Server, MySQL protocol, PostgreSQL protocol, Firebird, DuckDB, libSQL and Turso, MonetDB and ClickHouse, IBM Db2, IBM Informix, SAP HANA, SAP ASE, Cassandra and ScyllaDB, ODBC, MS Access, Couchbase, Apache CouchDB.
- Clustering in Exponential 6.0, Data tables.
- PHP extensions per engine, Choosing an engine (the DBA's questions).