Sample Northwind Data Warehouse. Provides a handful of CloverDX Wrangler Data Sources for learning purposes.
This library is an example of Data Sources implementations which can be used in CloverDX Wrangler.
Some DataSources are just 1:1 wrappers of underlying DB tables. Others represent more complex SQL queries which combine several tables into denormalized flat structures which are easier to be used by business users.
Handling DataSource preview and also user configurable DataSource filters is shown/implemented in some of the connectors.
Full E-R schema/diagram of the database with relationships among tables can be found in icons/northwind-ERD.png.
List of 91 customers with information such as customerid, name, address, phone, etc.
List of 9 employees with information such as employeeid, first_name, birth_date, hire_date, address, etc.
List of 9 employees with additional information like total_revenue and total_number_of_orders per employee
List of 830 Orders with information such as order_id, customer_id shipped date, ship_address, quantity, unit_price, etc.
List of 77 Products with information such as product_id, product_name unit_price, supplier_id, etc.
List of 830 orders with additional information such as num_products and order_total_value
Make sure to configure this library with appropriate JDBC URL and username + password with enough access rights (create table,alter table,select,insert,update...).
PostgreSQL database is expected, however other (MySQL, Oracle, MSSQL) should work as well.
Hint: the JDBC URL should be in following shape: jdbc:postgresql://your_server_name_or_ip/your_database_name
Example:
jdbc:postgresql://localhost/northwindNote: if you are using different database than PostgreSQL, you have to update the JDBC URL accordingly.
This library contains init graph (graph/init-db.grf) which creates DB tables and populates them with data. The graph actually just executes a SQL script.
The script expects PostgreSQL database. Other database provider can be used, but the script may not work properly.
(In case you would like to modify the script, it is in data-in/northwind.sql)
In order to create a new PostgreSQL database for this library, you can run:
CREATE DATABASE northwind OWNER nwuser
There are no dependencies on other libraries. The only dependency is that relational database (prefferably PostgreSQL) is required as primary source of data.
You can change any and all aspects of this library. It serves as an example of wrapper on top of local (or remote) database - DataWarehouse / DataLake - being made available to business users through Wrangler.