DatabaseDeleter
Delete rows in a database table based on the condition specified.
Input Ports
Input
This transformer accepts any feature.
Output Ports
This transformer has no output ports.
Parameters
Database To Update
Format and Dataset
Select the format and dataset where the table resides, including any format-specific parameters.
Parameters
Table
Specify the table to delete rows from. Click the Browse button to select the table from a list retrieved from the database. Note that you can only select this after you have completely specified the database format, dataset, and format-specific parameters.
Condition
Specify how to identify the rows to delete. This can either be done through Match Column(s) or through a WHERE Clause.
WHERE Clause
Use a SQL WHERE clause to identify matching records to delete.
An example clause is the following:
id = 'roads'
Match On
Match On
Specify the columns and their values used to identify matching records. A record match occurs when the contents of the row for the columns listed exactly equal the corresponding value.
In the Table Column field, click the Browse button to select from a list of all the columns in the database table. Note this only works after you have completely specified the database format, dataset, format-specific parameters, and picked a table.
Usage Notes
The DatabaseDeleter uses FME Writers to perform deletes on tables. Each DatabaseDeleter may have its own database connection, potentially not shared with other writers and transformers. If it is necessary to share a single connection or to change options on the writer that are not available in the DatabaseDeleter, use a writer directly instead.
See FME Readers and Writers (formats supported by FME 2014) > Database Writer Mode or specific writer documentation for more information on how writers will respond to deleting rows.
Unlike FME Writers, fme_db_operation and fme_where attributes are not supported on DatabaseDeleter input features.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click
beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Database
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.