Filters are used by Apply Process to filter out data while processing DML operations. The filter should be configured for either single table or group of the tables and at least for one DML operation. The filtering statement might also be provided, which is to be used to construct “where” condition of the DML statement. If the filtering statement is not provided, then the Apply Process will ignore this DML operation.
The syntax used is:
filter=id,rule=(table_mask;dml_operations;"filter_statement")where:
A filter is a parameter of the Apply Process. In repcli the id is part of the name, and in the REST API it is one [name, value] pair, for example ["filter=1", "rule=(scott.logs;DELETE;\"\")"]. It is set with Prepare Apply Process or Alter Process, and filter=filterID,default removes it. For an Amazon S3 or an Apache Kafka target a filter can only skip operations, it has no condition. In the Web UI the filters are on the tab “Data Filter” of the Apply Process Configuration (see Edit Replication Processes).
The following examples show various ways of defining the Filter parameters:
filter=1,rule=(scott.logs;DELETE;"")filter=2,rule=(dbo.orders;DELETE;"processed=1")filter=3,rule=(dbo.emp;INSERT,UPDATE,DELETE;"info='do_not_replicate'")filter=4,rule=(dbo.acct;INSERT;"id in (select id from dbo.acct)")
Prev page:
Kafka Apply ParametersNext page:
Alter Process