Targets #
The Targets Components are the last building blocks of a Modifier. While creating a Modifier, you need to provide a target to where the data will be loaded. Without a working Target, the Modifier will not be valid.
Predefined Targets can only be defined by the system administrator.
Oracle Database Target #
Component for loading data to an Oracle Database. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- DB Host - the address where the database is located (Predefined),
- Port - the port of the address (Predefined),
- Username - the username with access to the database (Predefined),
- Password - the password needed to access the database (Predefined),
- Service name - the alias of the database (use either Service name or SID) (Predefined),
- SID - the unique name of the database (use either Service name or SID) (Predefined),
- Table - the table to which we want to load data,
- Save mode - how to load data into the database:
- Merge - updates existing data and inserts new data to the table,
- Full replace - deletes table data and inserts only new data to the table,
Postgres Database Target #
Component for loading data to a Postgres Database. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- DB Host - the address where the database is located (Predefined),
- Port - the port of the address (Predefined),
- DB Name - name of the database (Predefined),
- Username - the username with access to the database (Predefined),
- Password - the password needed to access the database (Predefined),
- Table - the table to which we want to load data,
- Save mode - how to load data into the database:
- Merge - updates existing data and inserts new data to the table,
- Full replace - deletes table data and inserts only new data to the table,
MySQL Database Target #
Component for loading data to a MySQL Database. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- DB Host - the address where the database is located (Predefined),
- Port - the port of the address (Predefined),
- DB Name - name of the database (Predefined),
- Username - the username with access to the database (Predefined),
- Password - the password needed to access the database (Predefined),
- Table - the table to which we want to load data,
- Save mode - how to load data into the database:
- Merge - updates existing data and inserts new data to the table,
- Full replace - deletes table data and inserts only new data to the table,
Microsoft SQL Server Database Target #
Component for loading data to a Microsoft SQL Server Database. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- DB Host - the address where the database is located (Predefined),
- Port - the port of the address (Predefined),
- DB Name - name of the database (Predefined),
- Username - the username with access to the database (Predefined),
- Password - the password needed to access the database (Predefined),
- Table - the table to which we want to load data,
- Save mode - how to load data into the database:
- Merge - updates existing data and inserts new data to the table,
- Full replace - deletes table data and inserts only new data to the table,
FusionRegistry10 Target #
Component for loading data to a Fusion Registry Dataflow. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- Fusion URL - the URL address of the Fusion Registry instance (Predefined),
- Username - the username with access to Fusion Registry dataflows (Predefined),
- Password - the password needed to access Fusion Registry dataflows (Predefined),
- Mode - how to load data into the Dataflow:
- Append - only insert new data to the Dataflow,
- Replace - update existing data and insert new data to the Dataflow,
- Delete - delete matching data from the Dataflow; the work of this mode depends on data in the Dataflow.
Script Target #
This Target can only be modified by the system administrator!
Component for loading data to any target. It is for advanced users to create a Python script
that does not need to return
any data. The input data tables are available from the INPUT_DATA
list variable. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- Script code - the code to use for extracting data (Predefined),
Available Packages #
Here is a list of available packages to use in your Script:
- all packages in the Python Standard Library,
- the pandas manipulation tool,
- the dateutil module for date and time manipulations,
- the NumPy fundamental package for scientific computing with Python,
- the OpenPyXL library to read/write Excel 2010
xlsx
/xlsm
/xltx
/xltm
files, - the pandaSDMX library for
SDMX-ML
data manipulation, - the xlrd library to read old
xls
Excel files, - the odfpy library to read and write OpenDocument files (i.e.
ods
), - the SQLAlchemy Python SQL toolkit and Object Relational Mapper,
- the Requests library for sending HTTP requests,
- the Beautiful Soup library for pulling data out of HTML and XML files,
- the pyodbc module for accessing
ODBC
databases, - the wbgapi module for accessing the World Bank’s economic data,
- the pandas-datareader library for fetching financial data into pandas DataFrames.
- the html5lib pure-python library for parsing HTML.
File based targets #
The Targets below are uploaded to the Resources of ETL data_snake. If you wish to transfer the created files, you need to download them through the Resources section.
Excel Target #
Component for loading data to an Excel file (xlsx only). This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- Path - the filepath in the Resources folder (Predefined),
- Sheet - the name of the sheet for data to be loaded to,
- Start from - the column from which to start loading data to the sheet,
- Export columns names - whether to load column headers to the file,
- Protected file - whether to rewrite the file if it exists; enabling this will cause that no new data will be written to the existing file, even if to a different sheet.
CSV Target #
Component for loading data to a CSV file. This Target needs the following fields to be provided:
- Name - a name of the component on the list of Targets (Predefined),
- Path - the filepath in the Resources folder (Predefined),
- Delimiter - symbol used to divide the values in the CSV file (Predefined),
- Protected file - whether to rewrite the file if it exists.