7. Data transfer

7.1 Import CSV, JSON and Excel

Data > Import CSV/JSON... loads a file into a table.

Import: preview

Import: preview

  1. Choose the file and its format (CSV, JSON, Excel with sheet selection), separator, header row and encoding (UTF-8 / ANSI); Preview shows the first rows.
  2. Choose the target table, or New table (create from file) to create it from the file columns (the New table (DDL) tab shows the proposed CREATE TABLE).
  3. Check the Column mapping: each file column goes to a target field (empty = skipped), with the suggested type. Map by name matches by name.
  4. Options: Empty = NULL, Truncate table first, Commit every N rows. Press Import; the Log tab reports the result.
Import: column mapping

Import: column mapping

Saved mappings: after every successful import the mapping (table, file columns, options) is saved and proposed again the next time the same file layout is used, even partially (new columns are marked NEW column - check). Named mappings can be saved, applied and deleted from the Saved mapping bar. Mappings are stored in transfer-mappings.json in the data folder.

7.2 Export

Export is available from the results grid (Export... button and context menu), from the Data tab of a table and from Data > Export selected table.... Formats:

At the end SmartFBX opens the folder with the file selected and the file itself with its default application. Table name, key fields, format, separator, folder and file name are remembered per table.

7.3 Compare and pump table data

Data > Compare / pump table data... compares the rows of a source with a target table, also between different connections, and synchronises them.

Data compare: setup

Data compare: setup

In the example the source query raises the price of peripherals by 5%: the comparison shows the two changed rows before anything is written.

Data compare: result

Data compare: result