Introduction
VirtualDB gives you a private, writable database environment over your existing database. It stands in front of your database server: your application connects to VirtualDB instead, reads your real data, and every write stays inside VirtualDB.
It is not a new database. It does not store data permanently. It does not require you to migrate, seed, or manage a separate environment. Your database doesn't move.
The problem it solves
Every developer working against a shared database is a liability. A bad migration, a runaway DELETE, a forgotten WHERE clause — any of these can corrupt data that every other developer, every CI pipeline, and every test suite depends on. The standard responses are painful: spin up a full copy of the database per developer, maintain teardown scripts, or work against stale fixtures that drift from production.
VirtualDB takes a different approach. It gives every process its own private view of the database, with zero infrastructure overhead.
How it works
When your application sends a read, VirtualDB reads the rows it needs from the source database, inside a consistent snapshot, and returns them — exactly as if VirtualDB weren't there.
When your application sends a write, VirtualDB captures it in a private, in-memory delta. The write is never forwarded to the source. Subsequent reads are answered using the merged view of source data plus the delta, so your application sees a fully consistent result.
When the VirtualDB instance exits, the delta is discarded (unless a persistence plugin keeps it). The source database is left exactly as it was found.
The isolation boundary
The isolation boundary is the process boundary.
Each VirtualDB instance has its own delta. Two instances running at the same time — even against the same source database — have completely independent deltas. A write made through one instance is invisible to all others.
- Each developer runs their own instance. No one's changes affect anyone else.
- Each CI job runs its own instance. Jobs are isolated with no shared state to clean up.
- Each AI agent runs its own instance. Autonomous writes never reach the source.
Key concepts
Source database
The real database server that VirtualDB reads. VirtualDB requires a read-only service account on the source, connects to it over verified TLS, and never writes to it. Logins are checked by the source itself, so your users, passwords and privileges stay the same.
Delta
The private, in-memory set of writes captured by a VirtualDB instance during its lifetime. It is local to the instance and never shared; it is not persisted unless a persistence plugin is installed. See The Delta Model for a deep dive.
Wire protocol
VirtualDB speaks the native wire protocol of your database. For MySQL it runs a stock mysqld 8.4, so the SQL dialect, the optimizer and the error codes are MySQL's own. Any client, ORM, or query builder that already works with your database works with VirtualDB — no SDK, no code changes, no adapter layer.
Engine
An engine is the database-specific part of VirtualDB. vdb-core is the database-agnostic core; vdb-mysql-engine is the MySQL engine, and vdb-mysql assembles it with MySQL's own server into the image you run.
Plugin
Plugins are out-of-process executables that connect to VirtualDB over JSON-RPC 2.0 on Unix sockets. They can intercept and modify queries at well-defined pipeline points without touching VirtualDB's core. See Plugins.
Current status
VirtualDB is in Public Alpha. MySQL 8.4 is the first supported database, available today as a container image for linux/amd64 and linux/arm64. MariaDB and Postgres are on the roadmap.
VirtualDB is licensed under the Elastic License 2.0 — free to self-host. A managed hosted offering is planned.
Next steps
- The Delta Model — understand exactly how writes are captured and reads are merged
- Plugins — extend VirtualDB without modifying it
- MySQL: Installation — get
vdb-mysqlrunning against your source database