SSIS Components for Couchbase

Build 24.0.8963

Using the Destination Component

After Establishing a Connection to the data source, add the CData Couchbase destination component to the workflow to load data into Couchbase.

Writing to Couchbase in a Data Flow

Follow the steps below to connect to Couchbase and update data.

  1. In the SSIS Toolbox, drag the CData Couchbase destination component into the Data Flow Task.
  2. Connect the output of a source component to the CData Couchbase destination component.
  3. Double-click the CData Couchbase destination component. The CData Couchbase Destination Editor dialog is displayed.
  4. In the Connection Managers menu, select an available CData Couchbase connection manager, or create a new one if one is not already available.
  5. Set Use a Table to the table you want to update.
  6. Set Action to a data manipulation action. See below for more information on each action.
  7. Select the Columns tab to discover the available columns for the table you identified in Step 5 above.
  8. On the Mappings tab, configure the mappings from source to destination. See below for more information.

QueryPassthrough Support

NOTE: For performance reasons, Couchbase does not support QueryPassthrough when using the destination component. Make sure you use a connection with QueryPassthrough set to False to use this component.

Column Configuration

You can edit the name, data types, length, precision, and scale of your destination columns in the Destination component's Columns tab.

Select a property in the list to edit it. You can also add, reorder, and remove columns using the buttons near the bottom of the interface.

If you want to revert any changes you have made to the columns to their defaults, click Refresh. Note that this will also delete any new columns you have added.

Column Mapping

In the Destination component's Mappings tab, you can map columns from the output of the inbound source component to columns in the table specified in the destination component.

Note: Opening the Columns tab retrieves metadata for the selected destination table. You must select this tab before columns will appear in the Mappings tab.

The Mappings tab is broken up into two tabs: TableView and DiagramView.

TableView

The TableView tab represents column mappings as a table with the following columns. It displays extra information not visible on the DiagramView tab.

  • Available Input Columns: Select a column from the input columns to map to a destination column.
    • If you opened the Columns tab before opening the Mappings tab for the first time, the input columns are autopopulated.
  • Available Destination Columns: Displays the column from the destination columns that the input column maps to.
  • Data Type: Displays the data type of the destination column.
  • Column Size: Displays the column size of the destination column.
  • Mapped: Toggles whether the current mapping is active.

You can also filter the displayed columns using the Filter box and the Read-only columns, Mapped columns, and Unmapped columns checkboxes at the top of the tab.

DiagramView

The DiagramView tab provides a visual representation of the column mappings.

Drag an input column's name from the Available Input Columns box to a column in the Available Destination Columns box to create a mapping. Each active mapping is represented by a line between the input column name and destination column name.

Command Execution

When you execute the data flow, the component executes one of the following operations to update the destination table.

Insert

The component takes the mapped values and attempts to insert the data as new rows into the table. By setting the OutputKey property to True in the destination component's properties, you can retrieve the results of the insertion in the error output of the component with the Redirect row error behavior.

Update

The component attempts to update an existing row based on the primary key provided. The primary key column must be mapped, and it must not be null. By setting the OutputKey property to True in the destination component's properties, you can retrieve the results of the update in the error output of the component with the Redirect row error behavior.

Upsert

The component uses the primary key to decide if a row is to be inserted or updated. If the primary key column is mapped and it is not null, the component attempts to update an existing row based on the primary key provided. If the primary key is not mapped or if it is null, the CData Couchbase Destination Component attempts to insert the data as a new row. By setting the OutputKey property to True in the destination component's properties, you can retrieve the results of the upsert in the error output of the component with the Redirect row error behavior.

Delete

The component attempts to delete an existing row based on the primary key provided. The primary key column must be mapped, and it must not be null.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963