By the end of this chapter page you will be able to:
Table of Contents |
---|
maxLevel | 1 |
---|
exclude | Run analysis* |
---|
|
Create a new datasource
Step 1 Add a new datasource to your model
- Drag Image Removed Add a new Datasource onto 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 click
Insert excerpt |
---|
| _finishsave |
---|
| _finishsave |
---|
nopanel | true |
---|
|
to save and close the settings. - PhixFlow adds the new datasource to your model. In the model toolbar, click .
Step 2 Set up the datasource
...
- You will now add more settings to the datasource.
- In the Basic Settings section:
- Enabled: tick
- Driver Class: select
MariaDB
- In the The Datasource Instances section , in the toolbar, click 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 |
---|
| _addfinish |
---|
| _addfinish |
---|
nopanel | true |
---|
|
to finish and close the datasource instance settings.
- Back in the datasource settings, click
Insert excerpt |
---|
| _addfinish |
---|
| _addfinish |
---|
nopanel | true |
---|
|
to finish and close.
Create a database collector from the datasource schema browser
- Hover over the datasource icon in In your model view, and in the hover menu press Image Removed Show Tables, 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 |
---|
|
- In the list of tables that appears, find the table called PhixFlow opens, scroll down to the
SOURCE_CUSTOMER_PHONE_NUMBERS
Double-click on this row in the schema browser; a new form will pop up showing table name.- To have a look at the data in
the table- this table, double-click its name.
- You can see there are columns for ##CUSTOMER_REF and ##PHONE_NUMBER.
- Close this data form
- Right-click on this row and
SOURCE_CUSTOMER_PHONE_NUMBERS
and in the pop-up menu, select Create a CollectorA . PhixFlow adds a new database collector will appear on your to your model view, to read which reads data from the table SOURCE_CUSTOMER_PHONE_NUMBERS. - Double-click on this the new database collector to open the details formits settings.
- In the Basic Settings section → Statement Expression field, you will see the query generated in the field Statement Expressioncan see that PhixFlow has added a database query.
- Close the database collector details formsettings.
- In the model window, press Save the model layout, click .
Create a
...
stream automatically from a
...
database collector
- Hover your mouse pointer over the
Insert excerpt |
---|
| _database_collector |
---|
| _database_collector |
---|
|
- Press Image Removed Create a new Stream using the attributes returned from the query
...
- .
- In the pop-up toolbar, click
Insert excerpt |
---|
| _stream_with_attributes |
---|
| _stream_with_attributes |
---|
nopanel | true |
---|
|
. PhixFlow adds the new stream to your model. - In the model window,
...
- click .
Run analysis and view the stream data
...
- To run analysis on your new stream
...
- hover your mouse pointer over the new stream, and
...
- in the pop-up toolbar, click
Insert excerpt |
---|
| _run_analysis |
---|
| _run_analysis |
---|
nopanel | true |
---|
|
. - To view the data you just loaded
...
- , hover over the stream and
...
- click
Insert excerpt |
---|
| _stream_views |
---|
| _stream_views |
---|
nopanel | true |
---|
|
. In the drop-down list,
...
- select
Insert excerpt |
---|
| _view_default |
---|
| _view_default |
---|
nopanel | true |
---|
|
.