DB Branching
How to use mirrord to spin up an isolated DB branch for safe development and testing DB migrations
Prerequisites
Configuring db_branches
db_branches{
"db_branches": [
{
"id": "users-mysql-db", // Optional
"type": "mysql", // Available options [mysql|pg|mongodb]
"version": "8.0",
"name": "users-database-name", // Optional
"ttl_secs": 60, // Optional
"creation_timeout_secs": 20, // Optional, Defaults to 60 if not specified
"connection": {
"url": {
"type": "env",
"variable": "DB_CONNECTION_URL" // Required
}
},
"copy": {
"mode": "empty" // Defaults to "empty" if not specified
}
}
]
}Key Fields
Running With DB Branches
FAQ
What's next?
Last updated
Was this helpful?

