Database engines
The CLI supports the same engines, versions and objects as the matching desktop edition, and follows the same rules for each.
On this page
At a glance
| PostgreSQL | MySQL | SQL Server | |
|---|---|---|---|
| License | PG-dbHydrate | MySQL-dbHydrate | dbHydrate for SQL Server |
| Source opened as | Read-only session | Read-only transaction | A transaction that is always rolled back; writes refused |
| Dry run | Transaction with a savepoint per statement, rolled back | Temporary shadow database, removed afterwards | Transaction with a savepoint per statement, rolled back |
| Schema changes in a transaction | Supported by PostgreSQL | Not supported by MySQL: each statement commits | Supported by SQL Server |
Supported database versions are listed on each edition’s page and in the download catalog: PostgreSQL, MySQL and SQL Server.
PostgreSQL
- The source runs in a read-only session.
- The dry run runs every change inside a transaction, sets a savepoint before each statement so one failure doesn’t hide the next, and rolls everything back.
- Schemas are compared by mapped name, so a profile can compare
stagingon the source withpublicon the target.
MySQL
- The source runs in a read-only transaction.
- MySQL commits each schema statement on its own, so a dry run can’t simply roll back. Instead it builds a temporary database named
_dbhydrate_shadow_<run-id>and rehearses there. - The shadow database is always removed: on success, on error and when the run is cancelled or times out.
- For the same reason, a failed
applycan stop part-way. The apply report lists each step that was applied. Always run the dry run first.
SQL Server
- SQL Server has no read-only session setting, so every read of the source runs in a transaction that is always rolled back, and write statements are refused.
- A source marked High protection whose login can write is refused, with the permissions named. Use a login that can only read.
- The dry run runs in a transaction with a savepoint per statement and is always rolled back. Some SQL Server errors end the whole transaction, and then the steps after it can’t be checked in that run.
applyruns as one transaction.- Windows authentication can’t be exported. Use a SQL Server login.
Across engines
Source and target must use the same engine. Comparing PostgreSQL with MySQL, for example, isn’t supported.