By the end of this chapter page you will be able to:
...
Table of Contents maxLevel 1 exclude Run analysis*
Create a new datasource
Add a new datasource to your model:
...
- From the model toolbar, drag a
onto the model.Insert excerpt _datasource _datasource nopanel true - In the new
...
- datasource settings form that
...
- opens, enter the Name:
CRM
...
The new datasource will now show on your modelling pane. Press Save the model layout
...
- In the settings toolbar, click
.Insert excerpt _save _save nopanel true - PhixFlow adds the new datasource to your model. In the model toolbar, click
.Insert excerpt _save _save nopanel true - 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:Insert excerpt _add _add nopanel true - Name:
Default
- Enabled: tick
- URL:
jdbc:mariadb://localhost/phixflow
- Anonymous Username:
cview
- Password:
cview
- Name:
...
- Click
to finish and close the datasource instance settings.Insert excerpt _finish _finish nopanel true
- Click
- Back in the datasource
...
- settings, click
to finish and close.Insert excerpt _finish _finish nopanel true
Create a database collector from the datasource schema browser
...
- In your model
...
- , hover your mouse pointer over the
icon. In the pop-up toolbar, clickInsert excerpt _datasource _datasource nopanel true Insert excerpt _tables _tables nopanel true - 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
.Insert excerpt _save _save nopanel true
Create a
...
stream automatically from a
...
database collector
- Hover your mouse pointer over the
Insert excerpt _database
...
._collector _database_collector nopanel true - In the pop-up toolbar, click
. PhixFlow adds the new stream to your model.Insert excerpt _stream_with_attributes _stream_with_attributes nopanel true - In the model window,
...
Run Analysis on Stream
...
- click
.Insert excerpt _save _save nopanel true
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
. In the drop-down list,Insert excerpt _stream_views _stream_views nopanel true
...
- select
.Insert excerpt _view_default _view_default nopanel true