By the end of this chapter page you will be able to:
Table of Contents |
---|
maxLevel | 1 |
---|
exclude | Run analysis* |
---|
|
Create a new datasource
Info |
---|
This step is not available within the training instance since database passwords cannot be shared here. However, read the steps to understand the process. Then jump below to continue from "Create a database collector from the datasource schema browser". Use the datasource "CenterView" by dragging it from the repository onto the model. |
- From the model toolbar, drag a
Insert excerpt |
---|
| _datasource |
---|
| _datasource |
---|
nopanel | true |
---|
|
onto the model. - In the new datasource settings form that opens, enter the Name:
CRM
- In the settings toolbar, click .
- PhixFlow adds the new datasource to your model. In the model toolbar, click .
- You will now add more settings to the datasource.
- In the Basic Settings section:
- Enabled: tick
- Driver Class: select
MariaDB
- The Datasource Instances section has its own toolbar. Click . PhixFlow opens the settings for a new datasource instance. Set:
- Name:
Default
- Enabled: tick
- URL:
jdbc:mariadb://localhost/phixflow
- Anonymous Username:
cview
- Password:
cview
- Click
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
to finish and close the datasource instance settings.
- Back in the datasource settings, click
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
to finish and close.
Create a database collector from the datasource schema browser
In your model, hover your mouse pointer over the
Insert excerpt |
---|
| _datasource |
---|
| _datasource |
---|
nopanel | true |
---|
|
icon. In the pop-up toolbar, click Insert excerpt |
---|
| _tables |
---|
| _tables |
---|
nopanel | true |
---|
|
Info |
---|
If you cannot see the table required it might be on another page. You can filter on the table name header, or use the paging bar to increase the page size or select the next page. |
- In the list of tables that PhixFlow opens, scroll down to the
SOURCE_CUSTOMER_PHONE_NUMBERS
table name.- To have a look at the data in this table, double-click its name.
- You can see there are columns for ##CUSTOMER_REF and ##PHONE_NUMBER.
- Close this data form
- Right-click
SOURCE_CUSTOMER_PHONE_NUMBERS
and in the pop-up menu, select Create a Collector. PhixFlow adds a new database collector to your model, which reads data from the table SOURCE_CUSTOMER_PHONE_NUMBERS. - Double-click on the new database collector to open its settings.
- In the Basic Settings section → Statement Expression field, you can see that PhixFlow has added a database query.
- Close the database collector settings.
- In the model, click .
...