AppCode 2021.1 Help

View data

When you double-click a table in the Database tool window (View | Tool Windows | Database ), the table opens in the data editor. You can browse and edit table data in three modes: Table, Tree, Text, and Transpose. To switch between these modes, click the View as button (the View as button) and select the mode that you need.

  • Table: the default viewing mode of table data. Data in a table is stored in a cell that is an intersection of a vertical column and horizontal row.

    The table viewing mode

  • Tree: viewing mode in which data is displayed in the key-value table with the possibility to expand the key cell if it contains children nodes. Data from the expanded children node is distributed between key and value columns. You might consider using this mode to work with JSON and array data.

    The tree viewing mode

  • Text: viewing mode in which data is displayed as a text.

    The transposed table viewing mode

  • Transpose: viewing mode in which rows and columns are interchanged. You can combine this checkbox with other viewing modes.

    To make this mode a default for tables and views, open settings by pressing ⌃⌥S and navigate to Tools | Database | Data Views and select the Automatically transpose tables. When this option is enabled, query results are not transposed.

    The transposed table viewing mode

View table data

  1. Open the Database tool window (View | Tool Windows | Database ).

  2. In the database tree, navigate to the table that you want to open.

  3. Double-click the table.

Transpose a table

You can rotate the table data from rows to columns and from columns to rows. In the transposed view, the rows and columns are interchanged. You can combine the transpose action with other viewing modes.

  • To transpose a table, click the View as button (the View as button) and select Transpose.

    The transposed table viewing mode

View the query that generated the result set

  • To see the query that was used to generate the result table, click the Show Options Menu icon (the Show Options Menu icon) and select View Query. If necessary, you can select the query text and copy it to the clipboard by pressing ⌃C.

    To close the pane where the query is shown, press .

    View the query that generated the table

Preview DML

  • When you insert, delete, or modify data in a table editor, you can preview the query that AppCode uses to perform selected operations. To preview the query, click the Preview pending changes button (the Preview pending changes button) on the toolbar.

Reload data for the table view

You need to reload data for the table view if you want to synchronize the data that you see in the editor with the contents of the database. Or, when you want to apply the page size limit setting after its change.

  • Click the Reload Page icon The Reload All from Disk button on the toolbar.

  • Right-click the table and select Reload Page from the context menu.

  • Press ⌃F5.

Last modified: 31 March 2021