Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (20 sloc) 1.136 kb
# This example demonstrates how to load more complex structures to GoodData
# Three datasets: department, employee, and salary are loaded are connected together
# Check the configuration files that contains the connection points and references
# see full command documentation at http://developer.gooddata.com/gooddata-cl/cli-commands.html
# Retrieve the project ID saved by the first script
UseProject(fileName="examples/hr/pid");
# Loads time dimension to the project
UseDateDimension(name="Payment");
# Generate the date dimension MAQL script
GenerateMaql(maqlFile="examples/hr/payment_date.maql");
# Execute the date dimension MAQL
ExecuteMaql(maqlFile="examples/hr/payment_date.maql");
# Load the salary data file, using the XML file describing the data
UseCsv(csvDataFile="examples/hr/salary.csv",header="true",configFile="examples/hr/salary.xml");
# Generate the MAQL script describing data model for salary data
GenerateMaql(maqlFile="examples/hr/salary.maql");
# Execute the salary MAQL script on the server
ExecuteMaql(maqlFile="examples/hr/salary.maql");
# Transfer the salary data
TransferData(incremental="false");
Jump to Line
Something went wrong with that request. Please try again.