CSV Editor
The CSV Editor opens a CSV file as a grid of rows and columns, and DbSchema built it for large files. You edit cells, filter and sort the rows, and save the file. The CSV Editor works in every edition of DbSchema, Community included, and needs no database connection.
Open a CSV file
- Choose Query → CSV Editor.
- Press Choose and pick the file.
- Check the Charset, the Delimiter, the Record Separator and the Quote Character that the file uses.
- Tick First Row is Header if the first line holds the column names.
- Press Open.
The file opens as a new tab under the diagram. To give it the whole diagram area, double-click its tab. An icon in the column header marks the columns that hold numbers or dates.
Edit cells, rows and columns
- Double-click a cell, type the new value and press Enter.
- To add or remove rows and columns, click a cell and open Row/Column: Insert Column Left, Insert Column Right, Insert Row Before, Insert Row After, Delete Row or Delete Column.
- To rename a column, right-click a cell of it and choose Rename Column.
- Choose File → Save, or press Ctrl+S. File → Save As writes a new file.
The file on disk changes only when you save. Edit → Undo, or Ctrl+Z, takes back a change, and Edit → Find Replace replaces text in the whole file.
Filter and sort the rows
A filter hides the rows that do not match, so you can work on a part of a large file.
- Click a cell in the column to filter, such as
last_name. - Choose Filter & Sort → Filter.
- Choose the operator, such as equals, type the value and press Ok.
A funnel icon marks the filtered column, and the grid shows only the matching rows.
Filter & Sort → Clear Filters shows all rows again. To sort, click a cell in the column and choose Filter & Sort → Sort Ascending or Sort Descending.