...
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Overview
...
This Snap outputs a list of You can use this Snap to list the tables in a database. The This Snap will connect connects to the database, read reads its metadata, and output outputs a document for each table found in the database. The table names are output displayed in a topological order in the output so that tables with the fewest few dependencies are displayed first in the output first. In other words For example, if table A has a foreign key reference to table B, then table B will be is displayed first in the output before A. The The ordering is intended to ease the process of replicating a group of tables from one database to another.
Expected input: [None]
Expected output: Documents with a "name" field containing the fully-qualified name of the table and a "type" field that is currently fixed to the string "TABLE". To use the table name in another Snap, like a Select or Insert, you can pass it through a ForEach Snap to another pipeline with the Select or Insert.
...
Snap Type
AlloyDB Table List Snap is a Read Snap.
...
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| This Snap has at most one document input viewThe schema name from where the Snap must list the tables. |
Output | Document |
|
| This Snap has exactly one document output viewSnap outputs a list of tables in a database. Documents with a "name" field containing the fully-qualified name of the table and a "type" field. To use the table name in another Snap, like a Select or Insert, you can pass it through for each Snap to another Pipeline with the Select or Insert. |
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 while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. |
...
Info |
---|
|
Field | Field Type | Description | ||
Label* Default Value: AlloyDB Table List | StringN/A | Specify a unique name for the Snap. Modify this to be more specific, especially if you have more than one Snap of the same type in your Pipeline. | ||
Schema name Default Value: N/A | String/Expression/Suggestion | N/A | The database schema name. In case it is not defined, then the suggestion for the table name will retrieve all tables names of all schemas. The property is suggestible and will retrieve available database schemas during suggest values. | |
Compute table graph Default Value: Not selected | Checkbox | N/A | Computes the dependents among tables and returns each table with a list of tables it has foreign key references to. The ordering of outputted tables is from least dependent to most-dependent. Turning on this option will significantly slow down the Snap; it should be left as off unless you need it. | |
Snap Execution Default Value: Validate & Execute | Dropdown list | N/A | Select one of the following three modes in which the Snap executes:
|
Example
Info |
---|
|
...
Snap Pack History
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...