Generic JDBC - Table List
Overview
You can use this Snap to obtain a list of tables from a database. The table names are displayed in a topological order so that tables with the less dependencies are listed first. In other words, if table A has a foreign key reference to table B, table B will be displayed before A.
Read-type Snap
Does not support Ultra Tasks
Limitations
A Schema name with special characters is not supported for some of the databases.
Snap views
| View | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input | Structure or JSON data from an upstream Snap that can pass a document output view. | |
| Output | This Snap outputs a list of tables with the following fields:
|
|
| Error |
Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
|
Snap settings
- Expression icon (
): Allows using pipeline parameters to set field values dynamically (if enabled). SnapLogic Expressions are not supported. If disabled, you can provide a static value.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
- Upload
: Uploads files. Learn more.
| Field / Field set | Type | Description |
|---|---|---|
| Label | String | Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: Generic JDBC - Table List Example: Load Employee Tables |
| Schema name | String/Expression/ Suggestion | Specify the database schema name. Alternatively, you can select a schema name
associated with the table from the suggestion list. Note: If we don’t specify any
schema name in the input, the Snap returns all the tables associated with all the
schemas in the database. Default value: N/A Example: schema_demo |
| Computable table graph | Checkbox | Select this checkbox to compute the dependents among tables and return each
table with a list of tables it has foreign key references to. The ordering of tables
in the output is from least dependent to most dependent. Note: When you select this
checkbox, the performance of the Snap might be affected. Therefore, we recommend
you to deselect this checkbox unless needed. Default status: Deselected |
| Snap execution | Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Execute only Example: Validate & Execute |