Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Live Search | ||||||||
---|---|---|---|---|---|---|---|---|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
This page is for data modellers who want to connect to an external database, either to load data or to export processed data back to it.
Overview
A datasource is a modelling object whose properties provide the information needed to connect to an external database. You must have one datasource for each type of database to which you need to connect. In an analysis model, you can add:
- a Database Collector to load data from a database.
- a Database Exporter to update the database with processed data from the model.
The datasources you create appear in the Basic Settings → Datasource list in collector and exporter properties.
Each datasource must have at least one datasource instance. You can add several instances if you want to configure different settings. For example you may want to connect to the same database using a different username and password for different scheduled tasks.
In the properties for collectors and exporters, you can optionally specify the datasource instance using the Advanced → Datasource Instance Expression.
To add a new datasource to an analysis model:
To add an existing datasource to an analysis model, in the model diagram toolbar:
Basic Settings
In addition to the standard icons, the properties toolbar includesFor a datasource, you must:
- Enter a Name.
- Select a Driver class.
- Add at least one datasource instance.
- Tick the Enabled check box when it is ready to use.
We recommend you tick Protect during import to prevent this datasource being updated or deleted during import.
Enter the name for this datasource. It is helpful to use a name that reflects the type of database to which it will connect. This name appears in the Datasource drop-down list for database collectors and exporters.
title | More ... |
---|
Note |
---|
Exception: If the datasource parent and the datasource have been deleted in the source instance, then the import deletes the datasource from the target instance. This prevents orphaned datasources persisting in PhixFlow. |
Select the driver class for the type of database to which the datasource connects.
Tip |
---|
The drop-down list may contain driver classes that are deprecated and do not have the necessary database drivers; see Driver Classes. |
When a driver class is selected, to open its properties, click the Driver Class heading.
Datasource Instances
This section has a toolbar with standard buttons.
The grid contains a list of datasource instances that belong to this datasource. Double-click on a row to open the datasource instance properties.
To add a datasource to the list, clickNote |
---|
Any changes you make will affect the analysis models in which the collector is used. |
Analysis Models
This section has a toolbar with standard buttons.
The grid contains a list of analysis models that use this datasource. Double-click on a row to open the analysis model properties.
Basic Settings
For SQL Server sqlserver\myservice;databaseName=MySQL mysqlhostname
/phixflow
Big Query bigquery://@hostname:@port;ProjectId=@Project; Propertiesproperty_tabs