v0.1.0

Capability matrix

What each adapter captures and writes, with honest support levels.

PostgreSQL is the reference system. A capability counts as supported for an adapter only when its capability matrix says so and a live test captures and recreates it on a real server of that system. The matrix is data in the code (crates/databee-*/src/capabilities.rs), and a test checks that every capability has a row.

Support levels: full is captured and recreated, partial is captured with a stated limit, none is not modelled, and is reported as a gap (DB-INT-001) where the system has the object.

Versions tested: PostgreSQL 15 to 19, MySQL 8.4 and 9, MariaDB 10.11 and 11.4, SQLite 3.37 or later (the version bundled with sqlx), SQL Server 2022, MongoDB 7.0 and 8.0.

Relational objects

Capability PostgreSQL MySQL MariaDB SQLite SQL Server MongoDB
Namespace full full full partial (one, main) full full
Table / collection full full full full full full
Column full full full full full partial (from validator and sample)
Primary key full full full full full full (_id)
Unique key full full full full full partial (a unique index)
Foreign key full full full full full partial (inferred, never enforced)
Check full full full full full none
Default full full full full full none
Enum type full partial (column type) partial (column type) none none none
Index full full full full full full
Partial index full none none full full (filtered) full
Expression index full full none full none none
Comment full full full none full partial
Identity full full full partial full none
Generated column full full full full full none
Full-text index none full full none none full
Spatial index none full full none none none
Prefix index none full full none none none
Unsigned integers none full full none none none
SET type none full full none none none
Nested, union, optional fields none none none none none full
Array field partial (simple values) none none none none full

Not modelled by any adapter: views, materialized views, functions, triggers, row-level security policies, partitioning, extensions, domains, composite and range types. Where a pull detects such an object it reports DB-INT-001 (“… is not captured”); the kinds it detects differ per adapter, so an absent warning does not prove an absent object. Sequences are the one exception in PostgreSQL: a sequence owned by a column (serial, OWNED BY) is read into the column, all others are reported.

Beyond the matrix

The matrix covers reading and recreating a system’s own objects. Two further tables of support live in the reports of the commands themselves, because they depend on your model:

  • databee generate ddl --dialect lists what it could not translate (DB-DDL-*).
  • databee transform and analyze compatibility classify every conversion as exact, equivalent, lossy, manual or unsupported.

Some limits to know up front: ALTER plans and sql-copy exports exist for PostgreSQL only; SQL Server is a source for transformation and migration, never a target; the fit score covers five systems and says why for each; MongoDB export is ndjson and not a consistent snapshot. The adapters other than PostgreSQL are younger and tested against fewer real-world schemas, so treat their reports as the authority on what survived.

Edit this page on GitHub · Docs for v0.1.0