MuleSoft Connector for EnterpriseDB

Build 21.0.7930

Batch Processing

Use the Bulk Execute operation to combine multiple statements of the same data manipulation operation into one statement.

Configuring Bulk Ops in the Visual Editor

To configure the operation in the Visual Editor, select the connector inside your flow and specify the following connector properties.

  • Connector Configuration: Select a connection you created. See Establishing a Connection for more information.
  • Operation: Choose Bulk Execute.
  • SQL Query: Enter one or more SQL statements. See the following examples. The statements can also contain expressions.

Bulk Insert

The following examples combine multiple inserts into a single EnterpriseDB request:

SQL

INSERT INTO "postgres"."public".Orders (ShipCity) VALUES ('Raleigh'); INSERT INTO "postgres"."public".Orders (ShipCity) VALUES ('New York');
XML
<cdata-enterprisedbbulk-execute config-ref="CData_EnterpriseDB_Configuration" query="INSERT INTO "postgres"."public".Orders (ShipCity) VALUES ('Raleigh'); INSERT INTO \"postgres\".\"public\".Orders (ShipCity) VALUES ('New York');" doc:name="CData EnterpriseDB"/>

Bulk Update

The following examples combine multiple updates into a single EnterpriseDB request:

SQL

UPDATE "postgres"."public".Orders SET ShipCity='Raleigh' WHERE Id = 'MyId1';UPDATE "postgres"."public".Orders SET ShipCity='New York' WHERE Id = 'MyId2';
XML
<cdata-enterprisedbbulk-execute config-ref="CData_EnterpriseDB_Configuration" query="UPDATE "postgres"."public".Orders SET ShipCity='Raleigh' WHERE Id = 'MyId1';UPDATE "postgres"."public".Orders SET ShipCity='New York' WHERE Id = 'MyId2';" doc:name="CData EnterpriseDB"/>

Bulk Delete

The following examples combine multiple deletes into a single EnterpriseDB request:

SQL

DELETE FROM "postgres"."public".Orders WHERE Id = 'MyId1'; DELETE FROM "postgres"."public".Orders WHERE Id = 'MyId2'; 
XML
<cdata-enterprisedbbulk-execute config-ref="CData_EnterpriseDB_Configuration" query="DELETE FROM "postgres"."public".Orders WHERE Id = 'MyId1'; DELETE FROM "postgres"."public".Orders WHERE Id = 'MyId2'; " doc:name="CData EnterpriseDB"/>

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930