Windows & Linux

CLI release

Coming January 2027. The dbHydrate command-line tool isn't available yet. These preview docs describe the planned first release; commands and options may change.
Browse CLI documentation

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

How each engine is handled
PostgreSQLMySQLSQL Server
LicensePG-dbHydrateMySQL-dbHydratedbHydrate for SQL Server
Source opened asRead-only sessionRead-only transactionA transaction that is always rolled back; writes refused
Dry runTransaction with a savepoint per statement, rolled backTemporary shadow database, removed afterwardsTransaction with a savepoint per statement, rolled back
Schema changes in a transactionSupported by PostgreSQLNot supported by MySQL: each statement commitsSupported 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 staging on the source with public on 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 apply can 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.
  • apply runs 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.