Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions features/import-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ As SQL, a results export writes `INSERT` statements only. A result set is the ou

Insert mode is spelled differently on each engine: `INSERT IGNORE` and `REPLACE INTO` on MySQL and MariaDB, `INSERT OR IGNORE` and `INSERT OR REPLACE` on SQLite, `ON CONFLICT` on PostgreSQL. Updating needs a primary key to name as the conflict target. An engine with no spelling for the mode writes plain inserts, and the export summary says which tables that happened to.

Splitting writes `dump.part1.sql`, `dump.part2.sql` and so on, rotating between statements so no part ends mid-`INSERT`. The summary names the first and last part; restore them in order. Each part re-opens the session state its own statements need, so a part restores on its own: on SQL Server that means `SET IDENTITY_INSERT`, which a part boundary used to leave behind. A part that cannot be written stops the export, and the error names the parts already on disk, because a rename cannot be taken back. A gzipped export is one file, so the two settings do not combine and the summary says so.
Splitting writes `dump.part1.sql`, `dump.part2.sql` and so on, rotating between statements so no part ends mid-`INSERT`. The summary names the first and last part; restore them in order. Each part re-opens the session state its own statements need, so a part restores on its own, `SET IDENTITY_INSERT` on SQL Server included. With gzip on, each part is a gzip file of its own, `dump.part1.sql.gz` and so on, and the split size is the compressed size on disk. A part that cannot be written stops the export, and the error names the parts already on disk, because a rename cannot be taken back.

A dump is UTF-8 and says so in every part, the way the engine's own dump tool does:

Expand Down Expand Up @@ -284,7 +284,7 @@ The extension picks the format, so one command covers all of them. A file no for
Encoding, transaction wrapping, and error handling for SQL; parsing and column mapping for CSV and JSON. TablePro remembers the options from your last successful import, and **Reset to Defaults** restores the stock ones.
</Step>
<Step title="Review and import">
Check the preview, statement count, and file size, then click **Import**. The progress bar of a SQL file follows how much of the file has been read, and the count beside it counts statements. The connection's [Safe Mode](/features/safe-mode) asks once for the whole file where its level calls for a confirmation or Touch ID.
Check the preview and file size, then click **Import**. The progress bar of a SQL file follows how much of the file has been read, compressed bytes for a `.sql.gz`, and the count beside it counts the statements run so far. The connection's [Safe Mode](/features/safe-mode) asks once for the whole file where its level calls for a confirmation or Touch ID.
</Step>
</Steps>

Expand Down
Loading