pub fn sync(
out: &Path,
config: &Config,
schemas: Option<&[String]>,
) -> Result<(), Error>Expand description
Synchronize PostgreSQL metadata into a cache that can later be loaded as a
Baseline.
The connection is read from DATABASE_URL and must target localhost or a
Unix socket. Encrypted caches read SAFE_MIGRATE_CACHE_KEY from the process
environment.
ยงErrors
Returns ErrorKind::Configuration for invalid settings and
ErrorKind::Sync when the connection, catalog read, or durable cache
replacement fails.