# Table View

**Table View** displays source or preview data for a single table. For a [file connector](https://docs.tonic.ai/app/setting-up-your-database/file-connector) workspace, each table corresponds to a file group.

{% hint style="info" %}
**Required workspace permission:**

* **Source data:** Preview source data
* **Destination data:** Preview destination data

If you do not have either of these permissions, then you cannot display **Table View**.
{% endhint %}

To display **Table View**:

* On the workspace management view, click **Table View**.
* On **Workspaces** view, from the dropdown menu in the **Name** column, select **Table View**.
* From **Database View**, either click the arrow icon for the table, or click a row in the table.

From **Table View**, you can view and update the table and column configuration.

![Table View with highlighted sections](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FtViMKlGacXOERRcVkMks%2FTableViewFull.png?alt=media\&token=228f8a48-cf1c-44ee-a0d4-5f3bdc40724c)

## Selecting and configuring tables <a href="#table-view-select-table" id="table-view-select-table"></a>

### Selecting the table to view <a href="#table-view-select-table" id="table-view-select-table"></a>

When you display **Table View** from **Database View**, it displays the data for the selected table.

When you display **Table View** from the workspace management view or **Workspaces** view, it displays the most recently displayed table.

If **Table View** was never displayed before, then it displays the first table in the workspace.

To change the selected table, from the **Table** dropdown list, select the table to view.

### Selecting the table mode <a href="#table-view-table-mode" id="table-view-table-mode"></a>

{% hint style="info" %}
**Required workspace permission:** Assign table modes
{% endhint %}

To change the table mode that is assigned to the table:

1. Click the current table mode.
2. On the table mode panel, from the table mode dropdown list, select the new table mode.

![Table Mode selection on Table View](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FTN8nGqVlQcADPzP78ntq%2FTableViewTableMode.png?alt=media\&token=e14b2cac-5340-4ecc-a003-2a5b1546063f)

When you change the table mode, Tonic Structural updates the preview data as needed. For example, if you change the table mode to Truncate, then the preview data is empty.

For a [child workspace](https://docs.tonic.ai/app/workspace/managing-workspaces/workspaces-inheritance), the table mode selection panel indicates whether the selected table mode is inherited from the parent workspace.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FnqIkHdut1sA3sWZRGkW5%2FTableViewTableModeOverride.png?alt=media&#x26;token=a21ec21e-a377-4f86-8b21-6c8778a3b4f3" alt=""><figcaption><p>Table mode configuration that overrides the parent workspace</p></figcaption></figure>

If the child workspace currently overrides the parent workspace configuration, then to reset the table mode to the table that is assigned in the parent workspace, click **Reset**.

## Viewing the generator configuration summary <a href="#table-view-model" id="table-view-model"></a>

The **Model** section of **Table View** displays the configured generators for the table columns.

![Model section of Table View](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FPtQOAEBRSoMr9tYSBNyC%2FTableViewModel.png?alt=media\&token=6a80bc68-58be-4bb3-bf1a-5e90c2286c14)

The header for each **Model** entry is the column name.

Linked columns share an entry. The heading is a comma-separated list of the linked columns.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FEng6UhptxId1gDBw8JEm%2FTableViewLinkedColumns.png?alt=media&#x26;token=972658b1-eae8-418c-bff8-1c081ae6fa0d" alt=""><figcaption><p>Model entry for linked columns</p></figcaption></figure>

Each entry contains the following information:

* The column and generator, in the format `Column Name >> Generator Name`. For example, `First_Name >> Name` indicates that the `First_Name` column has the Name generator applied.\
  \
  For linked columns, there is a `Column Name >> Generator Name` entry for each column.
* The selected configuration options for the generator.

For a [child workspace](https://docs.tonic.ai/app/workspace/managing-workspaces/workspaces-inheritance), each **Model** entry indicates whether the configuration overrides the parent configuration. For configurations that override the parent, to remove the overrides and restore the inheritance, click **Reset**.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FdONtTutKZBIoQq56X4Q8%2FTableViewModelWithOveride.png?alt=media&#x26;token=238a9e6d-ed42-4588-86a5-ddc699cd6d27" alt=""><figcaption><p>Model entry for a configuration that overrides the parent workspace</p></figcaption></figure>

The **Model** entry also indicates when [Structural data encryption](https://docs.tonic.ai/app/generation/generators-assign-config/generators-data-encryption-config) is enabled for the column.

To remove the generator from a column, click the delete icon.

## Changing the column data display <a href="#table-view-toggle-source-preview-data" id="table-view-toggle-source-preview-data"></a>

### Toggling between source and preview data <a href="#table-view-toggle-source-preview-data" id="table-view-toggle-source-preview-data"></a>

The **Preview** toggle at the top right of **Table View** allows you to choose whether to display original source data or the transformed data. You can switch back and forth to understand exactly how Structural transforms the data based on the table and column configuration.

By default, the **Preview** toggle is in the on position, and the displayed data reflects the selected table mode and the assigned generators. For tables that use Truncate mode, the preview data is empty. Truncated tables do not have data in the destination database.

To display the original source data, toggle **Preview** to the off position.

Note that for [JSON columns that use **Document View**](#column-json-document-view), you cannot preview the destination data from **Table View**. You must preview the data from **Document View**.

### Using a query to filter the source data <a href="#table-view-query-filter" id="table-view-query-filter"></a>

You can provide a query to filter the source data. The query is always against the source data, not the preview data, regardless of whether the **Preview** toggle is off or on.

For example, you configure a first name field to use the Name generator and enable consistency. You can then query the source data for a specific first name value to check that the preview data uses the same destination value for all of those records.

To apply a query to the source data:

1. Click the query filter icon, located between the table name and the table mode.
2. On the **Table Filter** dialog, provide the `WHERE` clause for the query.
3. To apply the query, click **Apply**.
4. To close the dialog, click **Close**.

![Table Filter dialog for Table View](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2Favow4OQ6WkIzPxAFeil3%2FTableViewTableFilter.png?alt=media\&token=dcedc487-bbdf-4c65-b965-f482030cedec)

To clear an applied query, on the **Table Filter** dialog, click **Clear**.

If no filter is applied, then the query filter icon has a white background.

![Query filter icon when no query is applied](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FMbzyhLGblodV101JCoT0%2FTableViewNoQuery.png?alt=media\&token=8a6754ed-3bcb-41f3-982a-79610b498164)

If a valid filter is applied, then the query filter icon has a gray background.

![Query filter icon when a query is applied](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FQfjsQihimN3s13jisMDy%2FTableViewQueryApplied.png?alt=media\&token=759eb27b-1229-4714-84f4-690df65901d9)

If the provided `WHERE` clause is not valid, then the query filter icon has a red background.

![Query filter icon when a bad query is applied](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FOFCpsANdUl50UONSvJRE%2FTableViewBadQuery.png?alt=media\&token=e9f4817c-6ede-49d6-96c6-18ea2f6e8f45)

## Navigating to a specific column <a href="#table-view-jump-to-column" id="table-view-jump-to-column"></a>

When the width of the table is more than 1.5 times the visible display area, then the **Jump to column** option displays.

To bring a specific column into view:

1. At the top right of **Table View**, click **Jump to column**.\
   \
   The list of table columns is displayed.
2. To filter the list, in the filter field, begin to type text that is in the column name.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2Fk7ZyrzI89RtdnLRSDXcx%2FTableViewJumpToColumn.png?alt=media&#x26;token=77c17031-ecfc-4ebd-b618-9e9405e7c5f7" alt=""><figcaption><p>Jump to column list with column name filter text</p></figcaption></figure>

3. Click the column.\
   \
   Structural scrolls the columns to make the selected column visible.

## Information in the column headings <a href="#table-view-column-attributes-data" id="table-view-column-attributes-data"></a>

In addition to the column name, the column heading provides details about the column type and protection status. It also provides access to change the column configuration.

### Primary and foreign key indicators <a href="#column-primary-foreign-key" id="column-primary-foreign-key"></a>

The column heading indicates when a column is either a primary key or a foreign key.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FIs3pLlIe7JqDpHgwwThE%2FTableViewPrimaryForeignKeys.png?alt=media&#x26;token=9bd4a7d7-54f1-4c95-9515-38360f993df3" alt=""><figcaption><p>Column headings for primary and foreign keys</p></figcaption></figure>

### Protection status

The column heading indicates the column protection status:

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FjL02Rvbk6YWWNnfmusJ0%2FTableViewProtectionStatus.png?alt=media&#x26;token=0b5f331a-ccca-4ead-800f-3bd79507ee7c" alt=""><figcaption><p>Protection status indicators in the column headings</p></figcaption></figure>

* At risk columns are sensitive and do not have an assigned generator.
* Protected columns have an assigned generator.
* Not sensitive columns are not sensitive and do not have an assigned generator.

### Sensitivity confidence

The sensitivity confidence indicator indicates the confidence in the detection.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FtbkNAqOuioz36IpNuhPs%2FTableViewSensitivityConfidence.png?alt=media&#x26;token=3fea258f-065a-4d1a-b16f-f4b0d6134608" alt=""><figcaption><p>Sensitivity confidence level indicator</p></figcaption></figure>

For sensitive columns that Structural detected, the confidence level can be high, medium, or low.

For custom sensitivity rule matches or columns that you manually marked as sensitive, the confidence level is full confidence.

For more information about how Structural identifies values and assigns the confidence level, go to [#sensitive-data-how-identified](https://docs.tonic.ai/app/identify-sensitive-data/running-the-structural-sensitivity-scan#sensitive-data-how-identified "mention").

### Column data type

The column heading displays the type of data that the column contains.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2Fb7XW21OTkkY1143gaTI0%2FTableViewDataType.png?alt=media&#x26;token=21203a49-f209-4774-8f9b-8a9138e3bbdb" alt=""><figcaption><p>Data type information in the column headings</p></figcaption></figure>

### Child workspace overrides <a href="#table-view-view-overrides" id="table-view-view-overrides"></a>

{% hint style="info" %}
**Required license:** Enterprise
{% endhint %}

In a [child workspace](https://docs.tonic.ai/app/workspace/managing-workspaces/workspaces-inheritance), when a column overrides the parent configuration, an **Overriding** label displays in the column heading.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FcqprNFMgzkuE1IIWeMtv%2FTableViewOverridingColumn.png?alt=media&#x26;token=42759a15-fa0b-4578-acf8-2fafdab3e617" alt=""><figcaption><p>Table View column with a configuration override</p></figcaption></figure>

To filter **Table View** to only display columns with overrides, toggle **Show Overrides Only** to the on position.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FfmdCmfaZD6z8gpaYWzkc%2FTableViewShowOverridesOnly.png?alt=media&#x26;token=44801120-ec6a-43d2-8c66-84bd6f82d24e" alt=""><figcaption><p>Table View with Show Overrides Only enabled</p></figcaption></figure>

## Configuring a column <a href="#table-view-configure-columns" id="table-view-configure-columns"></a>

### Applying or ignoring a recommended generator <a href="#table-view-recommended-generator" id="table-view-recommended-generator"></a>

{% hint style="info" %}
**Required workspace permission:** Configure column generators
{% endhint %}

When a sensitivity scan identifies a column, Structural recommends a generator for the column. For example, when the sensitivity scan identifies a column as a first name, Structural recommends the Name generator configured to generate a first name value.

For unprotected columns that have a recommended generator, the column heading displays the available recommendation icon.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2F1BTBYlt8eJxYq0brpYJF%2FTableViewRecommendedGeneratorIcon.png?alt=media&#x26;token=5c495119-5ad5-4c65-8781-882fe33a3089" alt=""><figcaption><p>Table View column heading with the recommended generator icon</p></figcaption></figure>

When you click the dropdown, the column configuration panel includes the following information:

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FcqbOdVN5k4wLkcSPpBlu%2FTableViewRecommendedGeneratorPanel.png?alt=media&#x26;token=fd55c5a3-a56f-4f71-b9a3-b6cf616f8893" alt=""><figcaption><p>Recommended generator panel for a column on Table View</p></figcaption></figure>

* The sensitivity confidence level
* The recommended generator
* Sample source and destination values based on the recommended generator

From the panel, you can choose whether to assign or ignore the recommended generator for that type.

* To assign the recommended generator, click **Apply**.
* To ignore the recommendation, click **Ignore**. Structural clears the recommendation.

### Changing the column generator configuration <a href="#table-view-column-generator" id="table-view-column-generator"></a>

{% hint style="info" %}
**Required workspace permission:** Configure column generators
{% endhint %}

To assign a generator to a column that does not have an assigned generator, or to change the current configuration, click the dropdown in the column heading.

On the generator configuration panel, from the generator type dropdown list, select the generator to assign to the column.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2F3jNCaZjVHlzZpLsIaH9E%2FTableViewGeneratorDropdown.png?alt=media&#x26;token=6e498248-9920-4551-97a1-4d391c26fc0d" alt=""><figcaption><p>Generator dropdown list for a Table View column</p></figcaption></figure>

Structural displays the available configuration options for the selected generator. For details about the configuration options for each generator, go to the [generator-reference](https://docs.tonic.ai/app/generation/generators/generator-reference "mention").

To remove the selected generator or generator preset, and reset the generator to Passthrough, click **Reset**, then click **Reset to Passthrough**.

For more information about selecting and configuring generators and generator presets, go to [generator-assignment-and-config](https://docs.tonic.ai/app/generation/generators-assign-config/generator-assignment-and-config "mention").

### Indicating whether a column is sensitive <a href="#table-view-configure-column-sensitivity" id="table-view-configure-column-sensitivity"></a>

{% hint style="info" %}
**Required workspace permission:** Configure column sensitivity
{% endhint %}

On the column configuration panel, the **Sensitive Data** toggle indicates whether the column is marked as sensitive. The initial configuration is based on the sensitivity scan.

* To mark a column as sensitive, toggle the setting to the on position.
* To mark a column as not sensitive, toggle the setting to the off position.

In a [child workspace](https://docs.tonic.ai/app/workspace/managing-workspaces/workspaces-inheritance), you cannot configure whether a column is sensitive. A child workspace always inherits the sensitivity designation from its parent workspace.

When you copy a workspace, Structural performs a new sensitivity scan on the copy. It does not copy the sensitivity designations from the original workspace.

### Enabling Document View for JSON columns <a href="#column-json-document-view" id="column-json-document-view"></a>

{% hint style="info" %}
Supported only for the file connector and PostgreSQL.
{% endhint %}

For a JSON column, instead of assigning a generator, you can enable **Document View**.

From **Document View**, you can view the JSON schema structure and assign generators to individual JSON fields. For more information, go to [json-document-view](https://docs.tonic.ai/app/generation/working-with-document-based-data/json-document-view "mention").

To enable **Document View**, on the column configuration panel, toggle **Use Document View** to the on position. Note that if you have [custom value processors](https://docs.tonic.ai/app/generation/generators-assign-config/custom-value-processors), or enabled [Structural data encryption](https://docs.tonic.ai/app/generation/generators-assign-config/generators-data-encryption-config), then the **Use Document View** toggle is in the advanced options.

&#x20;When **Document View** is enabled, the generator dropdown is replaced with the **Open in Document View** option.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/app/generation/table-view.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
