Data

Move, reshape, protect and compare data: import, export, SQL migration, data masking, reschema, compare and sync, collection copy.

This section covers the tools that read data in bulk from one place and write it to another. They follow the same safety rules, so read them once here:

The acme_store sample database in the connection tree

  • Nothing is written before you confirm. Every run (import, export, migration, masking, reschema, paste, sync) first shows a confirmation that names what will be written, replaced, dropped or cleared. Saved tasks can run without the prompt. Some cases always need a person to confirm (see Mask data).
  • Read-only connections refuse writes in the engine, not only in the window. A tool that would write to a connection with the read-only lock stops before it asks anything.
  • Sources are never written. An export, a migration, a reschema or a comparison only reads its source. SQL sources open read-only sessions and accept only reading statements.
  • Drop and clear wait for the first record. When an insertion mode drops or clears the target, this happens just before the first batch is written. A file that cannot be read, a wrong path or a source that fails at once leaves the target as it was.
  • Files are written next to their target. They are renamed into place only when complete, so a failed or cancelled export never leaves a half-written file over the previous one.
  • Long runs are jobs. They appear in the Operations pane under the connection tree, with their progress, a Cancel button and a summary when they finish. Cancel stops at the next batch, and what was written before stays.
TaskPage
Load JSON, CSV, BSON dumps, a SQL table or another collectionImport data
Save collections or query results as JSON, CSV, Excel, SQL, BSON or into another collectionExport data
Move relational tables into collectionsMigrate from SQL to MongoDB
Move collections into relational tables or SQL filesMigrate from MongoDB to SQL
Make a safe copy of sensitive dataMask data
Change the structure of documentsReschema a collection
Find and fix differences between two collectionsCompare and sync collections
Copy collections between databases or serversCopy and paste collections

You can save each of these tools as a task, then run it again or on a schedule. See Automation.

The examples in this section use a sample database, acme_store, with the collections customers, orders and products.