DBMaster

Edit and import data

DBMaster is built to touch real data carefully: every change is a transaction and there are several safety nets before it runs.

Edit rows

Tap a row of a table to edit it (it is identified by its primary key) and use + to add one. Every change is made in a safe transaction. Row-by-row editing relies on the primary key. If a cell stores an image, you can view and change it, even from a web address. On servers, editing, adding and deleting rows is a Pro feature; on SQLite files it is free.

Safety net

  • Confirmation before anything dangerous: DELETE or UPDATE without WHERE, DROP, TRUNCATE, ALTER and procedures ask you to confirm.
  • Preview of the affected rows: before a simple UPDATE or DELETE, DBMaster counts how many rows it will touch and shows you the first ones as they are now. It can be turned off in Settings → Editor.
  • Manual commit: with the Manual switch (next to the query tab) nothing is committed until you tap Commit. Meanwhile, Roll back reverts everything or Undo last statement only the last one. The bar says how many changes are pending.
  • Production and read-only: see environments.

In MySQL and TiDB, a CREATE, ALTER, DROP or TRUNCATE commits whatever is pending by itself: DBMaster warns you before running it.

Preview of the 36 rows an UPDATE will touch
Preview of an UPDATE
Manual commit bar with one pending change
Manual commit

Import data

In the ⋮ menu of a table, Import data… opens a CSV, JSON, Excel (.xls or .xlsx) or SQL script file. Before importing you choose:

  • The separator (comma, semicolon, tab…) and whether the first row has the column names.
  • Whether empty cells become NULL.
  • What to do if the key already exists: fail, update the row or skip it.
  • The column mapping: by name automatically, or by hand for each table column, or Do not import (uses the default value).

Auto-increment columns number themselves, unless you assign them a column of the file.

Importing data into a table is a Pro feature (free on SQLite).

CSV import screen with the column mapping
Importing a CSV

Export

From a result or a table you can export to CSV, JSON, HTML or SQL, only what you see or the whole result. Huge values are exported in chunks and, if a cell cannot be read, DBMaster warns you instead of silently losing data. Exporting is a Pro feature.

Scripts

Tools → Run script runs an SQL file. The GO separators of SQL Server and ASE are understood. If a statement hangs, you can skip it without stopping the rest; by default the script stops at the first error (you can change it in Settings → Editor).

Next: Create tables, views and users →