Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (21 sloc) 1.083 kB
# A simple example that loads a flat file with a stock quote data and connect a time dimension
# see full command documentation at http://developer.gooddata.com/gooddata-cl/cli-commands.html
# Create a new project
CreateProject(name="Empty Dates");
# Store the project ID to file for possible other scripts
RememberProject(fileName="tests/empty_dates/pid");
# Loads time dimension to the project
UseDateDimension(name="Empty Date");
# Generate the MAQL script describing the data model for the date dimension
GenerateMaql(maqlFile="tests/empty_dates/date.maql");
# Execute the date dimension MAQL script
ExecuteMaql(maqlFile="tests/empty_dates/date.maql");
# load the stock quotes data file
# the data file config has been generated
UseCsv(csvDataFile="tests/empty_dates/data.csv",header="true",configFile="tests/empty_dates/config.xml");
# generate the stock quotes MAQL
GenerateMaql(maqlFile="tests/empty_dates/empty_dates.maql");
# execute the stock quotes MAQL
ExecuteMaql(maqlFile="tests/empty_dates/empty_dates.maql");
# transfer the stock quotes data
TransferData();
Jump to Line
Something went wrong with that request. Please try again.