PhixFlow Help

Creating Datasources and Database Collectors

By the end of this chapter you will be able to:

  • Create Datasources
  • Create Database Collectors from the Datasource schema browser
  • Create Streams automatically from Database Collectors

Create a new Datasource

Add a new Datasource to your model:

  • Drag - Add a new Datasource onto the modelling pane
  • In the new Datasource form that pops up, enter a Name: CRM
  • Press OK

The new Datasource will now show on your modelling pane. Press Save the model layout.

  • Double-click your new Datasource to open the details form
  • Complete the configuration:
  • (You will already been in the Details pane)
  • Tick the Enabled flag
  • Select the Driver Class: MySQL
  • Select the Datasource Instances tab
  • PressĀ  ā€“ Add a new item
  • In the new Datasource Instance form that pops up, enter the following details:
    • Name: Default
    • URL: jdbc:mariadb://mysql:3306/cview
    • Anonymous Username: cview
    • Password: cview
    • PressĀ 
  • Back in the Datasource details form, pressĀ 

Create a Database Collector from the Datasource schema browser

  • Hover over the Datasource icon in your model view, and in the hover menu press - Show Tables
  • In the list of tables that appears, find the table called SOURCE_CUSTOMER_PHONE_NUMBERS
  • Double-click on this row in the schema browser; a new form will pop up showing the data in the table
  • Close this data form
  • Right-click on this row and select Create a Collector
  • A new Database Collector will appear on your model view, to read data from the table SOURCE_CUSTOMER_PHONE_NUMBERS
  • Double-click on this new Database Collector to open the details form; you will see the query generated in the tab Query String
  • Close the Database Collector details form
  • In the model window, press Save the model layout

Create a Stream automatically from a Database Collector

  • Hover over the Database Collector
  • Press - Create a new Stream using the attributes returned from the query

In your model, you will see the new Stream that has been created.
In the model window, press Save the model layout.

Run Analysis on Stream

Run Analysis on your new Stream:

  • Hover over the stream, and pressĀ  - Run Analysis
  • See the run complete in the Console

View Stream data

To view the data you just loaded:

  • Hover over the Stream and in the hover menu pressĀ  - Show the list of Stream Views
  • In the drop down list, select Default View

Please let us know if we could improve this page feedback@phixflow.com