A branch is a separate database instance that is created from an existing database. You can also create a branch from a point-in-time snapshot of a database. Branches are useful for development and testing, because they allow you to make changes to the database without affecting the original database.
Database branches are completely separate from the original database. This means that you need to handle merging any schema changes or data manually using a migration tool.
You will need to create a new token (or use a group token) to connect to the new database.
You will need to manually delete the database branch when you no longer need it.
Branches count towards your plan’s database quota.
Automating branching is useful for creating a new database for each pull request. This allows you to test changes without affecting the original database.Here’s an example of what that might look like using the Platform API: