download_catalog_patch_sql

Function download_catalog_patch_sql 

Source
fn download_catalog_patch_sql(
    client: &Client,
    patch_url: &str,
) -> Result<String>
Expand description

Downloads and decompresses a single zstd-compressed catalog patch SQL file.

The patch payload is read fully into memory, decompressed, and returned as UTF-8 SQL text ready for execution against the working copy database.

ยงErrors

Returns an error when the HTTP request fails, when the server returns a non-success status, when the response body cannot be read, when the payload cannot be decompressed, or when the SQL text cannot be decoded.