Convert GZ to SQL

Turn GZ archives into SQL. The gzip layer is removed and the bytes inside are written as they were.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop GZ files on the dialor turn it to pick what to do

A SQL script out of a gzip file.The gzip layer comes off. The text inside is yours as it was.

  1. What you get

    A SQL file with the same bytes that were inside the GZ file. Nothing is rewritten, reformatted or reordered. The result is one file.

    The conversion removes the compression and nothing else. A database dump that was gzipped comes back as a dump any SQL tool can read or replay.

  2. Know what is inside

    Ask for SQL only when you know the GZ file holds SQL. The conversion does not turn other content into SQL. A gzipped log or CSV is refused, because anything other than the format inside is not accepted.

    A conversion stops with unsupported_elements when the file holds something SQL cannot carry. It stops with input_corrupted when the file could not be parsed as gzip.

  3. Going the other way

    To compress a script again, use SQL to GZ. For other options, see every GZ conversion.

GZ and SQL.What each format is.

The formats

From · GZ

Gzip

A single file compressed with gzip, such as a log or a CSV.

Extensions
.gz
MIME type
application/gzip
Kind
Archives
To · SQL

SQL Script

SQL statements as text. A database dump that any SQL tool can read or replay.

Extensions
.sql
MIME type
application/sql
Kind
Text and data

In your code.The same GZ to SQL conversion through the API, for your app or your agent.

terminal
$ cv convert archive.gz archive.sql
$ cv convert archive.gz archive.sql

Questions.What people ask about GZ to SQL.

01OF 04

No. The gzip layer is removed and the bytes inside are written as they were.

No. Ask for the format you know is inside. A request for any other format is refused.

The file could not be parsed. The conversion stops with this code.

No. This conversion has no options, and it gives you one file.

More conversions.Other ways in and out of GZ and SQL.